Skip to content

Commit d35fb7e

Browse files
Update DynamoRevit.cs (#3033)
OnRequestsCrashPrompt function
1 parent 2701ba0 commit d35fb7e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/DynamoRevit/DynamoRevit.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,9 +1053,7 @@ private static void Dispatcher_UnhandledException(
10531053
try
10541054
{
10551055
DynamoModel.IsCrashing = true;
1056-
RevitDynamoModel.OnRequestsCrashPrompt(
1057-
RevitDynamoModel,
1058-
new CrashPromptArgs(args.Exception.Message + "\n\n" + args.Exception.StackTrace));
1056+
RevitDynamoModel.OnRequestsCrashPrompt(new CrashErrorReportArgs(args.Exception));
10591057
RevitDynamoViewModel.Exit(false); // don't allow cancellation
10601058
}
10611059
catch { }
@@ -1223,4 +1221,4 @@ internal static IEnumerable<string> GetLayoutSpecsFiles()
12231221
return ParseinternalPackageFiles(internalPackageFiles).Select(pkg => pkg.LayoutSpecsPath);
12241222
}
12251223
}
1226-
}
1224+
}

0 commit comments

Comments
 (0)