diff --git a/sstables/exceptions.hh b/sstables/exceptions.hh index d0a2fe5eea..7f404edf6a 100644 --- a/sstables/exceptions.hh +++ b/sstables/exceptions.hh @@ -38,7 +38,7 @@ public: // The exception will include a complete backtrace, so no need to add call-site identifiers to the message. inline void parse_assert(bool condition, std::optional filename = {}, const char* message = nullptr) { if (!condition) [[unlikely]] { - on_parse_error(message, filename); + on_parse_error(message ? message : sstring(), filename); } }