Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include stacktrace in parser internal error message #5508

Merged
merged 2 commits into from
May 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Include stacktrace in parser internal error message
  • Loading branch information
keyboardDrummer committed May 30, 2024
commit fa85c2f01a0c3078c83ae84cbce1dad5bee93cbe
3 changes: 1 addition & 2 deletions Source/DafnyCore/AST/Grammar/ProgramParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ public class ProgramParser {

var reporter = new BatchErrorReporter(options);
reporter.Error(MessageSource.Parser, ErrorId.p_internal_exception, internalErrorDummyToken,
"[internal error] Parser exception: " + e.Message + (!options.Verbose ? "" :
"\n" + e.StackTrace));
"[internal error] Parser exception: " + e.Message + "\n" + e.StackTrace);
return new DfyParseResult(reporter, new FileModuleDefinition(Token.NoToken), new Action<SystemModuleManager>[] { });
}
}
Expand Down
Loading