From b04fc09682c566055491450e07665edf235e028c Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Sun, 31 Mar 2024 14:18:21 -0500 Subject: [PATCH] Update internal error messages --- src/utils/error.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/error.hpp b/src/utils/error.hpp index f4e404a..0e3e3ff 100644 --- a/src/utils/error.hpp +++ b/src/utils/error.hpp @@ -20,9 +20,9 @@ namespace detail { class internal_error : public std::exception { std::string msg; public: - internal_error(std::string message) : msg(std::move(message)) {} + internal_error(std::string message) : msg("Cpptrace internal error: " + std::move(message)) {} template - internal_error(const char* format, Args&&... args) : msg(microfmt::format(format, args...)) {} + internal_error(const char* format, Args&&... args) : internal_error(microfmt::format(format, args...)) {} const char* what() const noexcept override { return msg.c_str(); }