From: Steinar H. Gunderson Date: Sat, 15 Jun 2019 13:03:52 +0000 (+0200) Subject: Give a slightly friendlier error message if the user forgets to connect an input. X-Git-Tag: 1.9.0~33 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=67cb1b844a13c84a2df64a603644579310530409 Give a slightly friendlier error message if the user forgets to connect an input. --- diff --git a/nageru/scene.cpp b/nageru/scene.cpp index d7da7db..0d10be5 100644 --- a/nageru/scene.cpp +++ b/nageru/scene.cpp @@ -327,6 +327,8 @@ Scene::get_chain(Theme *theme, lua_State *L, unsigned num, const InputState &inp #endif } else if (block->signal_type_to_connect == Block::CONNECT_VIDEO) { signals_to_connect.emplace(input, block->video_to_connect->get_card_index()); + } else if (block->signal_type_to_connect == Block::CONNECT_NONE) { + luaL_error(L, "An input in a chain was not connected to anything (forgot to call display())"); } else { assert(false); }