]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Improve logging slightly
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 14 Feb 2018 14:44:41 +0000 (14:44 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 14 Feb 2018 14:45:25 +0000 (14:45 +0000)
src/libserver/cfg_rcl.c

index 7fbe7abd423cd38f84ef20eb8aead4dd4f7235ca..08896f484fdf4d127c4e65b6e93ccab468ea5e27 100644 (file)
@@ -3140,8 +3140,10 @@ rspamd_rcl_parse_struct_string_list (rspamd_mempool_t *pool,
                g_set_error (err,
                                CFG_RCL_ERROR,
                                EINVAL,
-                               "non-empty array of strings is expected: %s",
-                               ucl_object_key (obj));
+                               "non-empty array of strings is expected: %s, "
+                               "got: %s, of length: %d",
+                               ucl_object_key (obj), ucl_object_type_to_string (obj->type),
+                               obj->len);
                return FALSE;
        }