From 50a9ffeaf020eb2f2c879fcf9b97f266d6ea459b Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 14 Jun 2025 16:55:57 +1200 Subject: [PATCH] 'Generic Commit' --- src/assert.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); }