Skip to content

Commit

Permalink
Do not fail silently when verbose errors are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Aug 27, 2024
1 parent 74273ad commit 452955e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions TwitchDownloaderWPF/WindowMassDownload.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 452955e

Please sign in to comment.