diff options
Diffstat (limited to 'sway/commands/reload.c')
-rw-r--r-- | sway/commands/reload.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/commands/reload.c b/sway/commands/reload.c index 3ccbbf34..6e7772e9 100644 --- a/sway/commands/reload.c +++ b/sway/commands/reload.c | |||
@@ -56,13 +56,12 @@ struct cmd_results *cmd_reload(int argc, char **argv) { | |||
56 | } | 56 | } |
57 | 57 | ||
58 | if (!load_main_config(config->current_config_path, true, true)) { | 58 | if (!load_main_config(config->current_config_path, true, true)) { |
59 | return cmd_results_new(CMD_FAILURE, "reload", | 59 | return cmd_results_new(CMD_FAILURE, "Error(s) reloading config."); |
60 | "Error(s) reloading config."); | ||
61 | } | 60 | } |
62 | 61 | ||
63 | // The reload command frees a lot of stuff, so to avoid use-after-frees | 62 | // The reload command frees a lot of stuff, so to avoid use-after-frees |
64 | // we schedule the reload to happen using an idle event. | 63 | // we schedule the reload to happen using an idle event. |
65 | wl_event_loop_add_idle(server.wl_event_loop, do_reload, NULL); | 64 | wl_event_loop_add_idle(server.wl_event_loop, do_reload, NULL); |
66 | 65 | ||
67 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 66 | return cmd_results_new(CMD_SUCCESS, NULL); |
68 | } | 67 | } |