mirror of
https://github.com/falk-werner/webfused
synced 2026-03-02 04:09:19 +00:00
log syntax errors
This commit is contained in:
@@ -84,8 +84,16 @@ wfd_config_load_file(
|
||||
if (CONFIG_TRUE == rc)
|
||||
{
|
||||
result = wfd_config_load(&config);
|
||||
config_destroy(&config);
|
||||
}
|
||||
else
|
||||
{
|
||||
WFD_ERROR("failed to load config: %s: %d: %s",
|
||||
config_error_file(&config),
|
||||
config_error_line(&config),
|
||||
config_error_text(&config));
|
||||
}
|
||||
config_destroy(&config);
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -102,8 +110,15 @@ wfd_config_load_string(
|
||||
if (CONFIG_TRUE == rc)
|
||||
{
|
||||
result = wfd_config_load(&config);
|
||||
config_destroy(&config);
|
||||
}
|
||||
else
|
||||
{
|
||||
WFD_ERROR("failed to load config: %d: %s",
|
||||
config_error_line(&config),
|
||||
config_error_text(&config));
|
||||
}
|
||||
config_destroy(&config);
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user