From 8f57527b31ae157cc1e88b636b5edb7dadbe258b Mon Sep 17 00:00:00 2001 From: MadcowOG Date: Sun, 5 Mar 2023 17:06:38 -0800 Subject: [PATCH] It's probably just best that we don't die if we don't recognize a command. Also, specified an error was dwl-bar related in error message. --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 36d46ad..ad5919d 100644 --- a/src/main.c +++ b/src/main.c @@ -666,7 +666,7 @@ void handle_stdin(char* line) { bar_set_layout(monitor->bar, layout); free(layout); } else { - die("command unrecognized"); + /* TODO: Find a good way to tell the user a command wasn't recognized. Or just do nothing? */ } done: @@ -838,7 +838,7 @@ int main(int argc, char *argv[]) { void die(const char *fmt, ...) { va_list ap; va_start(ap, fmt); - fprintf(stderr, "error: "); + fprintf(stderr, "dwl-bar error: "); vfprintf(stderr, fmt, ap); va_end(ap);