mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 12:15:12 +00:00
[FIX] Log error if the config was not parsed
This commit is contained in:
parent
f9de7f1750
commit
b485298fbc
1 changed files with 6 additions and 0 deletions
|
|
@ -36,6 +36,12 @@ ParseeConfigLoad(char *conf)
|
|||
return;
|
||||
}
|
||||
json = JsonDecode(stream);
|
||||
if (!json)
|
||||
{
|
||||
Log(LOG_ERR, "Could not parse config JSON");
|
||||
StreamClose(stream);
|
||||
return;
|
||||
}
|
||||
|
||||
config = Malloc(sizeof(*config));
|
||||
#define CopyToStr(to, str) config->to = StrDuplicate( \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue