-
Notifications
You must be signed in to change notification settings - Fork 138
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
Always return parser errors gracefully #3578
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 83742cc Collapsed results for better readability
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3578 +/- ##
==========================================
+ Coverage 80.40% 80.43% +0.02%
==========================================
Files 393 393
Lines 97439 97537 +98
==========================================
+ Hits 78343 78451 +108
+ Misses 16352 16338 -14
- Partials 2744 2748 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Closes #3428
Description
Gracefully handle ALL errors at the Lexer and Parser level. This ensures all panics (both intentional and unintentional panics) are caught and returned as errors.
The complementing PR: #3507, ensures that
TokenLimitReachedError
(and only that) is always returned, rather than panicked. Once this PR is merged, #3507 is no longer necessary, but it's more like a code cleanup to properly return errors.master
branchFiles changed
in the Github PR explorer