From 452955e8032fa42cec75c1692b8e2ab549268e9b Mon Sep 17 00:00:00 2001 From: ScrubN <72096833+ScrubN@users.noreply.github.com> Date: Sun, 25 Aug 2024 18:57:09 -0400 Subject: [PATCH] Do not fail silently when verbose errors are disabled --- TwitchDownloaderWPF/WindowMassDownload.xaml.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TwitchDownloaderWPF/WindowMassDownload.xaml.cs b/TwitchDownloaderWPF/WindowMassDownload.xaml.cs index 5363c2f7..1bda5170 100644 --- a/TwitchDownloaderWPF/WindowMassDownload.xaml.cs +++ b/TwitchDownloaderWPF/WindowMassDownload.xaml.cs @@ -91,6 +91,8 @@ private async Task UpdateList() } catch (Exception ex) { + MessageBox.Show(this, ex.Message, Translations.Strings.UnknownErrorOccurred, MessageBoxButton.OK, MessageBoxImage.Error); + if (Settings.Default.VerboseErrors) { MessageBox.Show(this, ex.ToString(), Translations.Strings.VerboseErrorOutput, MessageBoxButton.OK, MessageBoxImage.Error); @@ -148,6 +150,8 @@ private async Task UpdateList() } catch (Exception ex) { + MessageBox.Show(this, ex.Message, Translations.Strings.UnknownErrorOccurred, MessageBoxButton.OK, MessageBoxImage.Error); + if (Settings.Default.VerboseErrors) { MessageBox.Show(this, ex.ToString(), Translations.Strings.VerboseErrorOutput, MessageBoxButton.OK, MessageBoxImage.Error);