diff --git a/src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs b/src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs index 87fc537b845..2cb2f566fe9 100644 --- a/src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs +++ b/src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs @@ -879,6 +879,7 @@ private void CrashGracefully(Exception ex, bool fatal = false) { try { + Console.WriteLine($"CrashGracefully + {fatal}"); var exceptionAssembly = ex.TargetSite?.Module?.Assembly; // Do not crash if the exception is coming from a 3d party package; if (!fatal && exceptionAssembly != null) diff --git a/test/DynamoCoreWpfTests/PackageManager/PackageManagerViewExtensionTests.cs b/test/DynamoCoreWpfTests/PackageManager/PackageManagerViewExtensionTests.cs index 4f458b00e9c..778500adb66 100644 --- a/test/DynamoCoreWpfTests/PackageManager/PackageManagerViewExtensionTests.cs +++ b/test/DynamoCoreWpfTests/PackageManager/PackageManagerViewExtensionTests.cs @@ -336,6 +336,8 @@ void DynamoConsoleLogger_LogErrorToDynamoConsole(string obj) } } + Assert.IsFalse(DynamoModel.IsCrashing); + DynamoConsoleLogger.LogErrorToDynamoConsole += DynamoConsoleLogger_LogErrorToDynamoConsole; Assert.Throws(() => {