aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 28e9d8d2..0ea44129 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -381,10 +381,13 @@ struct cmd_results *config_command(char *exec, char **new_block) {
381 sway_log(SWAY_INFO, "Config command: %s", exec); 381 sway_log(SWAY_INFO, "Config command: %s", exec);
382 const struct cmd_handler *handler = find_core_handler(argv[0]); 382 const struct cmd_handler *handler = find_core_handler(argv[0]);
383 if (!handler || !handler->handle) { 383 if (!handler || !handler->handle) {
384 const char *error = handler 384 if (handler) {
385 ? "Command '%s' is shimmed, but unimplemented" 385 results = cmd_results_new(CMD_INVALID,
386 : "Unknown/invalid command '%s'"; 386 "Command '%s' is shimmed, but unimplemented", argv[0]);
387 results = cmd_results_new(CMD_INVALID, error, argv[0]); 387 } else {
388 results = cmd_results_new(CMD_INVALID,
389 "Unknown/invalid command '%s'", argv[0]);
390 }
388 goto cleanup; 391 goto cleanup;
389 } 392 }
390 393