Skip to content
This repository was archived by the owner on Aug 10, 2021. It is now read-only.

Commit 3690577

Browse files
Review changes
1 parent 1b5c251 commit 3690577

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Runtime/GameEvents/Game/GameEvent.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,8 @@ public void RaiseGameEvent()
4646
}
4747
catch (Exception e)
4848
{
49-
if (debug)
50-
{
51-
Debug.Log($"Listener: {listener} of event: {name} has thrown an exception: {e.Message}");
52-
}
49+
Debug.Log($"Listener: {listener} of event: {name} has thrown an exception.");
50+
Debug.LogException(e, this);
5351
}
5452
}
5553
}

Runtime/GameEvents/Generic/ArgumentGameEvent.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,8 @@ public void RaiseGameEvent(TArgument argument)
4545
}
4646
catch (Exception e)
4747
{
48-
if (debug)
49-
{
50-
Debug.Log($"Listener: {listener} of event: {name} has thrown an exception: {e.Message}");
51-
}
48+
Debug.Log($"Listener: {listener} of event: {name} has thrown an exception.");
49+
Debug.LogException(e, this);
5250
}
5351
}
5452
}

0 commit comments

Comments
 (0)