Skip to content

Commit

Permalink
Fix hexadecimal line number in abort msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Oct 7, 2024
1 parent cc04e14 commit d7e7e47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void sanity_check_fn(const char *assertion, const char *file,
#endif

errorstream << std::endl << "In thread " << std::hex
<< std::this_thread::get_id() << ":" << std::endl;
<< std::this_thread::get_id() << ":\n" << std::dec;
errorstream << file << ":" << line << ": " << function
<< ": An engine assumption '" << assertion << "' failed." << std::endl;

Expand All @@ -69,7 +69,7 @@ void fatal_error_fn(const char *msg, const char *file,
#endif

errorstream << std::endl << "In thread " << std::hex
<< std::this_thread::get_id() << ":" << std::endl;
<< std::this_thread::get_id() << ":\n" << std::dec;
errorstream << file << ":" << line << ": " << function
<< ": A fatal error occurred: " << msg << std::endl;

Expand Down

0 comments on commit d7e7e47

Please sign in to comment.