diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-14 07:49:28 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-14 07:49:28 +0200 |
commit | 0c5591fed26bb0613083f45036ac590bdf4ee8dd (patch) | |
tree | fb23a40960eabcba237b8464c0da1d6c0b7abcf6 /degesch.c | |
parent | 855a9d81bacb290ac68e92a53b342489ee391c2e (diff) | |
download | xK-0c5591fed26bb0613083f45036ac590bdf4ee8dd.tar.gz xK-0c5591fed26bb0613083f45036ac590bdf4ee8dd.tar.xz xK-0c5591fed26bb0613083f45036ac590bdf4ee8dd.zip |
degesch: fix server loading
Diffstat (limited to 'degesch.c')
-rw-r--r-- | degesch.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -8985,10 +8985,13 @@ load_servers (struct app_context *ctx) while ((subtree = str_map_iter_next (&iter))) { const char *name = iter.link->key; + const char *err; if (subtree->type != CONFIG_ITEM_OBJECT) log_global_error (ctx, "Error in configuration: " "ignoring server `#s' as it's not an object", name); - else if (check_server_name_for_addition (ctx, name)) + else if ((err = check_server_name_for_addition (ctx, name))) + log_global_error (ctx, "Cannot load server `#s': #s", name, err); + else server_add (ctx, name, subtree); } } |