From 57ea0caf59d90cb784ba9b6ecd4bf625ed93042e Mon Sep 17 00:00:00 2001 From: Scoopta Date: Sat, 17 Aug 2019 18:43:06 -0700 Subject: [PATCH] Added an error for unknown modes --- src/wofi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wofi.c b/src/wofi.c index 7eeb158..030eb16 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -222,6 +222,9 @@ void wofi_init(struct map* config) { do_run(inner_box); } else if(strcmp(mode, "dmenu") == 0) { do_dmenu(inner_box); + } else { + fprintf(stderr, "I would love to show %s but Idk what it is\n", mode); + exit(1); } gtk_widget_grab_focus(entry); }