commit 1bd9b9a: [Minor] Improve error message

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Dec 5 20:35:07 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-12-05 20:33:25 +0000
URL: https://github.com/rspamd/rspamd/commit/1bd9b9af8556f1c7e107f703304923361056d3d0 (HEAD -> master)

[Minor] Improve error message

---
 src/lua/lua_spf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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,


More information about the Commits mailing list