From a905336489eb917e055ce76b0c38cd37e908c279 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 18 Dec 2015 14:49:56 +0000 Subject: [PATCH] Clarify error message --- src/libstat/stat_process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index 419827aeb..e09f72950 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -807,8 +807,8 @@ rspamd_stat_learn (struct rspamd_task *task, } if (!learned) { - g_set_error (err, rspamd_stat_quark (), 500, "message cannot be learned" - " for any classifier defined"); + g_set_error (err, rspamd_stat_quark (), 500, "message cannot be learned as " + "it has too few tokens for any classifier defined"); } else { g_atomic_int_inc (&task->worker->srv->stat->messages_learned); -- 2.39.5