]> source.dussan.org Git - rspamd.git/commitdiff
Clarify error message
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 18 Dec 2015 14:49:56 +0000 (14:49 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 18 Dec 2015 14:49:56 +0000 (14:49 +0000)
src/libstat/stat_process.c

index 419827aebc6d4d44e3f922b366f3cf68439578a6..e09f729508cab8f2a92e1fa1cbe751eb7e31afc9 100644 (file)
@@ -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);