diff --git a/Source/Debug/Debug.cpp b/Source/Debug/Debug.cpp index 783dee77..52beb582 100644 --- a/Source/Debug/Debug.cpp +++ b/Source/Debug/Debug.cpp @@ -204,7 +204,7 @@ namespace Aurora::Debug AUKN_SYM void _PushError(AuUInt address, FailureCategory category, const char *msg) { - LastError error{ address, category, msg }; + LastError error{ address, category, msg ? msg : "" }; AuUInt32 rng = GetFenceId(); Telemetry::InsertManualFence(rng); @@ -214,7 +214,8 @@ namespace Aurora::Debug Telemetry::InsertManualFence(rng); #if defined(DEBUG) || defined(INTERNAL) - LogWarn("ERROR: {}", msg); + PrintError(); + LogWarn("ERROR: {}", error.dbg); #endif }