From: Ingo Bürk Date: Wed, 4 Mar 2015 21:45:39 +0000 (+0100) Subject: Properly error out when the layout file cannot be read. X-Git-Tag: 4.9.1~1^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9ebf17c39d6711a36651aa9d024114013286b3da;p=i3%2Fi3 Properly error out when the layout file cannot be read. This will result in an actual error message for the user. fixes #1499 --- 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; }