fix(error): garbage values printed on error

This commit is contained in:
maelstrom 2025-04-16 01:21:57 +02:00
parent bea6f50f13
commit b7e3061dee

View file

@ -34,7 +34,7 @@ public:
if (isSuccess())
return std::get<success_state>(value).success;
std::visit([&](auto&& it) {
Logger::fatalErrorf("Unwrapped a result with error value: [%s] %s\n\t%s", it.errorType(), it.message(), errMsg);
Logger::fatalErrorf("Unwrapped a result with error value: [%s] %s\n\t%s", it.errorType().c_str(), it.message().c_str(), errMsg.c_str());
}, error().value());
panic();
}