From: sr55 Date: Sat, 29 Apr 2017 17:27:20 +0000 (+0100) Subject: WinGui: Change a message box to an error window when exceptions occur in setting... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82be1bf61f0fcfeb89300d80adf8334014444665;p=handbrake WinGui: Change a message box to an error window when exceptions occur in setting the destination. --- diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index 5b671c23d..0bcf52216 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -714,9 +714,9 @@ namespace HandBrakeWPF.ViewModels return; } } - catch (ArgumentException) + catch (Exception exc) { - this.errorService.ShowMessageBox(Resources.Main_InvalidDestination, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error); + this.errorService.ShowError(Resources.Main_InvalidDestination, string.Empty, value + Environment.NewLine + exc); return; }