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.
parent
fffce78d8c
commit
8f57527b31
|
|
@ -666,7 +666,7 @@ void handle_stdin(char* line) {
|
||||||
bar_set_layout(monitor->bar, layout);
|
bar_set_layout(monitor->bar, layout);
|
||||||
free(layout);
|
free(layout);
|
||||||
} else {
|
} else {
|
||||||
die("command unrecognized");
|
/* TODO: Find a good way to tell the user a command wasn't recognized. Or just do nothing? */
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
@ -838,7 +838,7 @@ int main(int argc, char *argv[]) {
|
||||||
void die(const char *fmt, ...) {
|
void die(const char *fmt, ...) {
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
fprintf(stderr, "error: ");
|
fprintf(stderr, "dwl-bar error: ");
|
||||||
vfprintf(stderr, fmt, ap);
|
vfprintf(stderr, fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue