]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix format string usage
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 13 May 2023 12:18:46 +0000 (13:18 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 13 May 2023 12:18:46 +0000 (13:18 +0100)
Issue: #4482

src/libserver/symcache/symcache_item.cxx

index 258e873ffff7de2482edf94dd758e0a1ee01d656..b50d4cae42959d2b86f49e7b5b8ba330935c94ab 100644 (file)
@@ -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? */