From: Vsevolod Stakhov Date: Tue, 19 Apr 2016 11:47:41 +0000 (+0100) Subject: [Minor] Be more informative about configuration errors X-Git-Tag: 1.2.4~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78321a77304981ddbc15c92afdf311f89f3bcb74;p=thirdparty%2Frspamd.git [Minor] Be more informative about configuration errors --- diff --git a/src/libstat/stat_config.c b/src/libstat/stat_config.c index 6e383baf14..3856fc1173 100644 --- a/src/libstat/stat_config.c +++ b/src/libstat/stat_config.c @@ -292,6 +292,8 @@ rspamd_stat_get_classifier (const gchar *name) } } + msg_err ("cannot find classifier named %s", name); + return NULL; } @@ -310,6 +312,8 @@ rspamd_stat_get_backend (const gchar *name) } } + msg_err ("cannot find backend named %s", name); + return NULL; } @@ -328,6 +332,8 @@ rspamd_stat_get_tokenizer (const gchar *name) } } + msg_err ("cannot find tokenizer named %s", name); + return NULL; } @@ -346,6 +352,8 @@ rspamd_stat_get_cache (const gchar *name) } } + msg_err ("cannot find cache named %s", name); + return NULL; }