]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Improve error message
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 5 Dec 2019 20:33:25 +0000 (20:33 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 5 Dec 2019 20:33:25 +0000 (20:33 +0000)
src/lua/lua_spf.c

index 6c3a47451c1b3d2eb4212e0e86cbd459c44b2a57..668c5ab582d9d43968924642fd241ab22179cc90 100644 (file)
@@ -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,