From 1bd9b9af8556f1c7e107f703304923361056d3d0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 5 Dec 2019 20:33:25 +0000 Subject: [Minor] Improve error message --- src/lua/lua_spf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lua/lua_spf.c') diff --git a/src/lua/lua_spf.c b/src/lua/lua_spf.c index 6c3a47451..668c5ab58 100644 --- a/src/lua/lua_spf.c +++ b/src/lua/lua_spf.c @@ -171,12 +171,12 @@ spf_lua_lib_callback (struct spf_resolved *record, struct rspamd_task *task, if (record) { if ((record->flags & RSPAMD_SPF_RESOLVED_NA)) { lua_spf_push_result (cbd, RSPAMD_SPF_RESOLVED_NA, NULL, - "no record found"); + "no SPF record found"); } else if (record->elts->len == 0) { if (record->flags & RSPAMD_SPF_RESOLVED_PERM_FAILED) { lua_spf_push_result (cbd, RSPAMD_SPF_RESOLVED_PERM_FAILED, NULL, - "permanent resolution error"); + "bad SPF record"); } else if ((record->flags & RSPAMD_SPF_RESOLVED_TEMP_FAILED)) { lua_spf_push_result (cbd, RSPAMD_SPF_RESOLVED_TEMP_FAILED, NULL, -- cgit v1.2.3