Properly error out when the layout file cannot be read.

This will result in an actual error message for the user.
fixes #1499
This commit is contained in:
Ingo Bürk 2015-03-04 22:45:39 +01:00 committed by Michael Stapelberg
parent 6c675cc3f6
commit 9ebf17c39d
1 changed files with 1 additions and 1 deletions

View File

@ -909,7 +909,7 @@ void cmd_append_layout(I3_CMD, char *path) {
LOG("JSON content = %d\n", content); LOG("JSON content = %d\n", content);
if (content == JSON_CONTENT_UNKNOWN) { if (content == JSON_CONTENT_UNKNOWN) {
ELOG("Could not determine the contents of \"%s\", not loading.\n", path); 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); free(path);
return; return;
} }