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:
parent
6c675cc3f6
commit
9ebf17c39d
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue