aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index cd8d67d..0acf201 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -92,6 +92,9 @@ int main(int argc, char **argv) {
if (!c.c)
fatal("ivi_controller global not available");
+ if (c.outputs.empty())
+ fatal("no output was set up!");
+
while (check_events(d.get(), &c, STDIN_FILENO) != -1) {
c.c->execute_pending();
}