[GUI] Allow the app to crash in DEBUG mode

This commit is contained in:
Alexey Golub 2019-09-15 20:30:10 +03:00
parent 29c35f6754
commit 533671c59f

View file

@ -24,11 +24,13 @@ namespace DiscordChatExporter.Gui
builder.Bind<IViewModelFactory>().ToAbstractFactory();
}
#if !DEBUG
protected override void OnUnhandledException(DispatcherUnhandledExceptionEventArgs e)
{
base.OnUnhandledException(e);
MessageBox.Show(e.Exception.ToString(), "Error occured", MessageBoxButton.OK, MessageBoxImage.Error);
}
#endif
}
}