From b7e3061dee2a2221ede2b09554f2e38537ae155a Mon Sep 17 00:00:00 2001 From: maelstrom Date: Wed, 16 Apr 2025 01:21:57 +0200 Subject: [PATCH] fix(error): garbage values printed on error --- core/src/error/result.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/error/result.h b/core/src/error/result.h index ac4cc1d..a97d689 100644 --- a/core/src/error/result.h +++ b/core/src/error/result.h @@ -34,7 +34,7 @@ public: if (isSuccess()) return std::get(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(); }