Skip to content

Commit 32c8641

Browse files
authored
Merge pull request #656 from jw098/exception
FileException logs the file name and its location.
2 parents f596c52 + cba893b commit 32c8641

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Common/Cpp/Exceptions.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ std::string Exception::to_str() const{
3030

3131

3232

33-
FileException::FileException(Logger* logger, const char* location, std::string message, std::string file)
33+
FileException::FileException(Logger* logger, const char* location, std::string message_string, std::string file)
3434
: m_location(location)
35-
, m_message(std::move(message))
35+
, m_message(std::move(message_string))
3636
, m_file(std::move(file))
3737
{
3838
std::string str = FileException::name();
39-
str += ": " + m_message;
39+
str += ": " + message();
4040
if (logger != nullptr){
4141
logger->log(str, COLOR_RED);
4242
}else{

0 commit comments

Comments
 (0)