From 67cb1b844a13c84a2df64a603644579310530409 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 15 Jun 2019 15:03:52 +0200 Subject: [PATCH] Give a slightly friendlier error message if the user forgets to connect an input. --- nageru/scene.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.39.2