Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pinzart90 committed Apr 26, 2024
1 parent b61e60d commit 8dfb8be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ void DynamoConsoleLogger_LogErrorToDynamoConsole(string obj)
}
}

Assert.IsFalse(DynamoModel.IsCrashing);

DynamoConsoleLogger.LogErrorToDynamoConsole += DynamoConsoleLogger_LogErrorToDynamoConsole;
Assert.Throws<NotImplementedException>(() =>
{
Expand Down

0 comments on commit 8dfb8be

Please sign in to comment.