commit a6c019c: [Fix] Fix format string usage
Vsevolod Stakhov
vsevolod at rspamd.com
Sat May 13 12:21:03 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-05-13 13:18:46 +0100
URL: https://github.com/rspamd/rspamd/commit/a6c019c98aeab124721984be79bc6ac994f38fb1 (HEAD -> master)
[Fix] Fix format string usage
Issue: #4482
---
src/libserver/symcache/symcache_item.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libserver/symcache/symcache_item.cxx b/src/libserver/symcache/symcache_item.cxx
index 258e873ff..b50d4cae4 100644
--- a/src/libserver/symcache/symcache_item.cxx
+++ b/src/libserver/symcache/symcache_item.cxx
@@ -599,7 +599,7 @@ auto item_type_from_c(enum rspamd_symbol_type type) -> tl::expected<std::pair<sy
return check_trivial(SYMBOL_TYPE_VIRTUAL, symcache_item_type::VIRTUAL);
}
- return tl::make_unexpected(fmt::format("internal error: impossible flags combination", type));
+ return tl::make_unexpected(fmt::format("internal error: impossible flags combination: {}", (int)type));
}
/* Maybe check other flags combination here? */
More information about the Commits
mailing list