mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
unhandled exceptions when calling Draw() must be fatal
This commit is contained in:
parent
b02194ca6a
commit
1d9116f0a0
1 changed files with 12 additions and 1 deletions
|
|
@ -1142,7 +1142,18 @@ internal partial class InterfaceManager : IInternalDisposableService
|
||||||
|
|
||||||
if (this.IsDispatchingEvents)
|
if (this.IsDispatchingEvents)
|
||||||
{
|
{
|
||||||
this.Draw?.Invoke();
|
try
|
||||||
|
{
|
||||||
|
this.Draw?.Invoke();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Log.Error(ex, "Error when invoking global Draw");
|
||||||
|
|
||||||
|
// We should always handle this in the callbacks.
|
||||||
|
Util.Fatal("An internal error occurred while drawing the Dalamud UI and the game must close.\nPlease report this error.", "Dalamud");
|
||||||
|
}
|
||||||
|
|
||||||
Service<NotificationManager>.GetNullable()?.Draw();
|
Service<NotificationManager>.GetNullable()?.Draw();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue