From cba893b7b8ad14d60142e230669374d5cdf759ea Mon Sep 17 00:00:00 2001 From: jw098 Date: Sat, 2 Aug 2025 00:00:52 -0700 Subject: [PATCH] FileException logs the file name and its location. --- Common/Cpp/Exceptions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Common/Cpp/Exceptions.cpp b/Common/Cpp/Exceptions.cpp index 5496bbf0fb..2bd683d838 100644 --- a/Common/Cpp/Exceptions.cpp +++ b/Common/Cpp/Exceptions.cpp @@ -30,13 +30,13 @@ std::string Exception::to_str() const{ -FileException::FileException(Logger* logger, const char* location, std::string message, std::string file) +FileException::FileException(Logger* logger, const char* location, std::string message_string, std::string file) : m_location(location) - , m_message(std::move(message)) + , m_message(std::move(message_string)) , m_file(std::move(file)) { std::string str = FileException::name(); - str += ": " + m_message; + str += ": " + message(); if (logger != nullptr){ logger->log(str, COLOR_RED); }else{