Skip to content

Commit

Permalink
Merge pull request #42 from fmoo/Exception-Stacks
Browse files Browse the repository at this point in the history
Use ToString() to format AggregateException
  • Loading branch information
dogboydog authored Apr 4, 2024
2 parents 6cc4938 + 08981da commit 5f5438b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/YarnSpinner-Godot/Runtime/Views/LineView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ public void RunLine(LocalizedLine dialogueLine, Action onDialogueLineFinished)
var errorMessage = "";
if (failedTask.Exception != null)
{
errorMessage =$"{failedTask.Exception.Message}\n{failedTask.Exception.StackTrace}";
errorMessage = failedTask.Exception.ToString();
}
GD.PushError($"Error while running {nameof(RunLineInternal)}: {errorMessage}");
},
Expand Down
2 changes: 1 addition & 1 deletion addons/YarnSpinner-Godot/Runtime/Views/OptionsListView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public void DialogueComplete()
var errorMessage = "";
if (failedTask.Exception != null)
{
errorMessage =$"{failedTask.Exception.Message}\n{failedTask.Exception.StackTrace}";
errorMessage = failedTask.Exception.ToString();
}
GD.PushError($"Error while running {nameof(Effects.FadeAlpha)}: {errorMessage}");
},
Expand Down

0 comments on commit 5f5438b

Please sign in to comment.