Skip to content

Commit 66b6454

Browse files
authored
Merge pull request #1336 from joto/check-for-tables-lua-config
Check that you have any output tables defined in the flex config
2 parents dae326a + 68b65f1 commit 66b6454

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/output-flex.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,6 +1388,11 @@ output_flex_t::output_flex_t(
13881388
init_lua(m_options.style);
13891389
}
13901390

1391+
if (m_tables->empty()) {
1392+
throw std::runtime_error{
1393+
"No tables defined in Lua config. Nothing to do!"};
1394+
}
1395+
13911396
assert(m_table_connections.empty());
13921397
for (auto &table : *m_tables) {
13931398
m_table_connections.emplace_back(&table, m_copy_thread);

0 commit comments

Comments
 (0)