diff --git a/src/assert.hpp b/src/assert.hpp index 3445cbd..a18dd67 100644 --- a/src/assert.hpp +++ b/src/assert.hpp @@ -163,8 +163,10 @@ void assert_failed( std::source_location location = std::source_location::current() ) { if (!condition) { - std::cerr << "Assertion failed at " << location.file_name() << ":" << location.line() << ": " - << location.function_name() << ": " << message << "\n"; + std::cerr << std::endl + << "Assertion failed at " << location.file_name() << ":" << location.line() << ": " + << location.function_name() << ": " << std::endl + << colors::red << message << colors::reset << std::endl << std::endl; print_stacktrace(); std::abort(); }