diff --git a/DiscordChatExporter.Gui/Bootstrapper.cs b/DiscordChatExporter.Gui/Bootstrapper.cs index 4d7c2601..b442a287 100644 --- a/DiscordChatExporter.Gui/Bootstrapper.cs +++ b/DiscordChatExporter.Gui/Bootstrapper.cs @@ -24,11 +24,13 @@ namespace DiscordChatExporter.Gui builder.Bind().ToAbstractFactory(); } +#if !DEBUG protected override void OnUnhandledException(DispatcherUnhandledExceptionEventArgs e) { base.OnUnhandledException(e); MessageBox.Show(e.Exception.ToString(), "Error occured", MessageBoxButton.OK, MessageBoxImage.Error); } +#endif } } \ No newline at end of file