diff options
-rw-r--r-- | src/controller.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controller.c b/src/controller.c index cc3d85681..03e174637 100644 --- a/src/controller.c +++ b/src/controller.c @@ -922,8 +922,9 @@ rspamd_controller_learn_fin_task (void *ud) if (rspamd_learn_task_spam (session->cl, task, session->is_spam, &err) == RSPAMD_STAT_PROCESS_ERROR) { - msg_info ("cannot learn <%s>: %e", task->message_id); + msg_info ("cannot learn <%s>: %e", task->message_id, err); rspamd_controller_send_error (conn_ent, 500 + err->code, err->message); + return TRUE; } /* Successful learn */ |