mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-30 14:46:35 +00:00
Update error reporting
This commit is contained in:
parent
3ec4f70260
commit
e0c1f6930e
@ -148,13 +148,17 @@ void Page::load_jsonl(const char* pagesfile)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!HASP_FS.exists(pagesfile)) {
|
if(!HASP_FS.exists(pagesfile)) {
|
||||||
LOG_ERROR(TAG_HASP, F(D_FILE_LOAD_FAILED), pagesfile);
|
LOG_WARNING(TAG_HASP, F(D_FILE_NOT_FOUND ": %s"), pagesfile);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_TRACE(TAG_HASP, F(D_FILE_LOADING), pagesfile);
|
LOG_TRACE(TAG_HASP, F(D_FILE_LOADING), pagesfile);
|
||||||
|
|
||||||
File file = HASP_FS.open(pagesfile, "r");
|
File file = HASP_FS.open(pagesfile, "r");
|
||||||
|
if(!file) {
|
||||||
|
LOG_ERROR(TAG_HASP, F(D_FILE_LOAD_FAILED), pagesfile);
|
||||||
|
return;
|
||||||
|
}
|
||||||
dispatch_parse_jsonl(file);
|
dispatch_parse_jsonl(file);
|
||||||
file.close();
|
file.close();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user