From: Vsevolod Stakhov Date: Tue, 8 Jun 2021 10:49:31 +0000 (+0100) Subject: [Minor] Improve error logging X-Git-Tag: 3.0~336 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d31a116278f7e45ed07deba98cfe11c34441233e;p=rspamd.git [Minor] Improve error logging --- diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index fdd7e455a..73b9a3b1d 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -3107,11 +3107,14 @@ rspamd_rcl_parse_struct_keypair (rspamd_mempool_t *pool, *target = kp; } else { + gchar *dump = ucl_object_emit (obj, UCL_EMIT_JSON_COMPACT); g_set_error (err, CFG_RCL_ERROR, EINVAL, - "cannot load the keypair specified: %s", - ucl_object_key (obj)); + "cannot load the keypair specified: %s; section: %s; value: %s", + ucl_object_key (obj), section->name, dump); + free (dump); + return FALSE; } }