Skip to content
Browse files

don't swallow exceptions if errors occurred while loading assembly in…

… CQA
  • Loading branch information...
1 parent 08f8dd6 commit 830b0ab2553f11659244e3c0309bb82596375a7b @siegfriedpammer siegfriedpammer committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/AddIns/Analysis/CodeQuality/Src/MainWindow.xaml.cs
View
6 src/AddIns/Analysis/CodeQuality/Src/MainWindow.xaml.cs
@@ -10,7 +10,6 @@
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
-
using GraphSharp.Controls;
using ICSharpCode.CodeQualityAnalysis.Controls;
using ICSharpCode.CodeQualityAnalysis.Utility;
@@ -78,6 +77,11 @@ private void btnOpenAssembly_Click(object sender, RoutedEventArgs e)
dataContext.ProgressbarVisible = Visibility.Hidden;
dataContext.AssemblyStatsVisible = Visibility.Visible;
dataContext.MainTabEnable = true;
+
+ if (args.Error != null) {
+ ICSharpCode.Core.MessageService.ShowException(args.Error);
+ return;
+ }
Helper.FillTree(definitionTree, metricsReader.MainModule);
dataContext.MainModule = metricsReader.MainModule;

0 comments on commit 830b0ab

Please sign in to comment.
Something went wrong with that request. Please try again.