]> granicus.if.org Git - handbrake/commitdiff
WinGui: Change a message box to an error window when exceptions occur in setting...
authorsr55 <sr55.hb@outlook.com>
Sat, 29 Apr 2017 17:27:20 +0000 (18:27 +0100)
committersr55 <sr55.hb@outlook.com>
Sat, 29 Apr 2017 17:27:20 +0000 (18:27 +0100)
win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs

index 0c4637e6f69ef85f3698e7481c750e7f8be46041..c11400bd7541fc089fb5dcd0b15f2f87b2a6ae3d 100644 (file)
@@ -733,9 +733,9 @@ namespace HandBrakeWPF.ViewModels
                                 return;\r
                             }\r
                         }\r
-                        catch (ArgumentException)\r
+                        catch (Exception exc)\r
                         {\r
-                            this.errorService.ShowMessageBox(Resources.Main_InvalidDestination, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
+                            this.errorService.ShowError(Resources.Main_InvalidDestination, string.Empty, value + Environment.NewLine + exc);\r
                             return;\r
                         }\r
 \r