Skip to content

Commit

Permalink
update use of OnRequestsCrashPrompt API (#3032)
Browse files Browse the repository at this point in the history
  • Loading branch information
aparajit-pratap authored Jan 25, 2024
1 parent 720d1e9 commit 9f36638
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/DynamoRevit/DynamoRevit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1053,9 +1053,7 @@ private static void Dispatcher_UnhandledException(
try
{
DynamoModel.IsCrashing = true;
RevitDynamoModel.OnRequestsCrashPrompt(
RevitDynamoModel,
new CrashPromptArgs(args.Exception.Message + "\n\n" + args.Exception.StackTrace));
RevitDynamoModel.OnRequestsCrashPrompt(new CrashErrorReportArgs(args.Exception));
RevitDynamoViewModel.Exit(false); // don't allow cancellation
}
catch { }
Expand Down

0 comments on commit 9f36638

Please sign in to comment.