aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/output.c')
-rw-r--r--sway/commands/output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/commands/output.c b/sway/commands/output.c
index be78358a..23792855 100644
--- a/sway/commands/output.c
+++ b/sway/commands/output.c
@@ -29,7 +29,8 @@ struct cmd_results *cmd_output(int argc, char **argv) {
struct output_config *output = new_output_config();
if (!output) {
- return cmd_results_new(CMD_FAILURE, "output", "Unable to allocate output config");
+ sway_log(L_ERROR, "Failed to allocate output config");
+ return NULL;
}
output->name = strdup(name);