]> 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 18:28:46 +0000 (19:28 +0100)
win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs

index 5b671c23db3562a1f4db0b491289a2770d7ec35c..0bcf522166ae800dbd6308973e5d94752b4f0e83 100644 (file)
@@ -714,9 +714,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