aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-02-10 23:08:53 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2016-02-10 23:08:53 +0100
commit62efd181405d112b1fad38d548fadf00fed5f644 (patch)
tree18246c22a01fce34ddc74e72c009bdaddab42f0a
parent4d80701c7ef5a8d08b97c336463ca575740160ff (diff)
downloaddesktop-tools-62efd181405d112b1fad38d548fadf00fed5f644.tar.gz
desktop-tools-62efd181405d112b1fad38d548fadf00fed5f644.tar.xz
desktop-tools-62efd181405d112b1fad38d548fadf00fed5f644.zip
fancontrol-ng: fix error handling
-rw-r--r--fancontrol-ng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fancontrol-ng.c b/fancontrol-ng.c
index d68f2f0..a282013 100644
--- a/fancontrol-ng.c
+++ b/fancontrol-ng.c
@@ -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);
}