From 0c5591fed26bb0613083f45036ac590bdf4ee8dd Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Tue, 14 Jul 2015 07:49:28 +0200 Subject: degesch: fix server loading --- degesch.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/degesch.c b/degesch.c index a6babf4..cbd0a32 100644 --- a/degesch.c +++ b/degesch.c @@ -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); } } -- cgit v1.2.3-70-g09d2