fancontrol-ng: fix error handling

This commit is contained in:
Přemysl Eric Janouch 2016-02-10 23:08:53 +01:00
parent 4d80701c7e
commit 62efd18140
1 changed files with 2 additions and 2 deletions

View File

@ -535,9 +535,9 @@ load_configuration (struct app_context *ctx, const char *config_path)
{
const char *path = iter.link->key;
if (subtree->type != CONFIG_ITEM_OBJECT)
print_fatal ("device `%s' in configuration is not an object", path);
exit_fatal ("device `%s' in configuration is not an object", path);
else if (!check_device_configuration (subtree, &e))
print_fatal ("device `%s': %s", path, e->message);
exit_fatal ("device `%s': %s", path, e->message);
else
device_create (ctx, path, subtree);
}