[*] Crash fix: Null SysPushErrors should be assigned empty strings
This commit is contained in:
parent
c8c3908085
commit
784d58b184
@ -204,7 +204,7 @@ namespace Aurora::Debug
|
|||||||
|
|
||||||
AUKN_SYM void _PushError(AuUInt address, FailureCategory category, const char *msg)
|
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();
|
AuUInt32 rng = GetFenceId();
|
||||||
Telemetry::InsertManualFence(rng);
|
Telemetry::InsertManualFence(rng);
|
||||||
@ -214,7 +214,8 @@ namespace Aurora::Debug
|
|||||||
Telemetry::InsertManualFence(rng);
|
Telemetry::InsertManualFence(rng);
|
||||||
|
|
||||||
#if defined(DEBUG) || defined(INTERNAL)
|
#if defined(DEBUG) || defined(INTERNAL)
|
||||||
LogWarn("ERROR: {}", msg);
|
PrintError();
|
||||||
|
LogWarn("ERROR: {}", error.dbg);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user