From 9ebf17c39d6711a36651aa9d024114013286b3da Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ingo=20B=C3=BCrk?= Date: Wed, 4 Mar 2015 22:45:39 +0100 Subject: [PATCH] Properly error out when the layout file cannot be read. This will result in an actual error message for the user. fixes #1499 --- src/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.c b/src/commands.c index 0a64b2b8..92203e39 100644 --- a/src/commands.c +++ b/src/commands.c @@ -909,7 +909,7 @@ void cmd_append_layout(I3_CMD, char *path) { LOG("JSON content = %d\n", content); if (content == JSON_CONTENT_UNKNOWN) { ELOG("Could not determine the contents of \"%s\", not loading.\n", path); - ysuccess(false); + yerror("Could not determine the contents of \"%s\".", path); free(path); return; } -- 2.39.5