aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-04 22:03:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-04 22:03:41 +0100
commit7ab692f4b779f12030a22af9a139e18b441e6ff6 (patch)
treeb284bcdaaeb64591fa250fbc2a900b267fc61171 /src/libserver/cfg_rcl.c
parente551aaad6083956e63e799de05430db3ecaceb1e (diff)
downloadrspamd-7ab692f4b779f12030a22af9a139e18b441e6ff6.tar.gz
rspamd-7ab692f4b779f12030a22af9a139e18b441e6ff6.zip
Be more clever about printing errors.
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r--src/libserver/cfg_rcl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index 6fc3eb260..ab3d21702 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -2276,7 +2276,8 @@ rspamd_config_read (struct rspamd_config *cfg, const gchar *filename,
}
if (!rspamd_rcl_parse (top, cfg, cfg->cfg_pool, cfg->rcl_obj, &err)) {
- msg_err ("rcl parse error: %s", err->message);
+ msg_err ("rcl parse error: %e", err);
+ g_error_free (err);
return FALSE;
}