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

Add unique error codes #52

Merged
merged 3 commits into from
Aug 6, 2024
Merged

Add unique error codes #52

merged 3 commits into from
Aug 6, 2024

Conversation

richfitz
Copy link
Member

@richfitz richfitz commented Aug 2, 2024

This PR adds odin-like error codes, following quite closely the implementation in odin2 (see mrc-ide/odin2#5 for details). There's some harmonisation to do between these later, but I wanted to get this started before it was too big a job later. Many reasonable models still don't parse of course...

Copy link

codecov bot commented Aug 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (3ac1d8b) to head (17a2d3a).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #52   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           57        58    +1     
  Lines         3411      3441   +30     
=========================================
+ Hits          3411      3441   +30     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@richfitz richfitz marked this pull request as ready for review August 2, 2024 08:06
@richfitz richfitz marked this pull request as draft August 2, 2024 08:06
@richfitz richfitz marked this pull request as ready for review August 2, 2024 08:09
Copy link
Contributor

@weshinsley weshinsley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looking good - some trivial typos (which I'll apply and merge)

R/dsl-parse-error.R Outdated Show resolved Hide resolved
R/dsl-parse-error.R Outdated Show resolved Hide resolved
vignettes/dsl-errors.Rmd Outdated Show resolved Hide resolved
vignettes/dsl-errors.Rmd Outdated Show resolved Hide resolved
vignettes/dsl-errors.Rmd Outdated Show resolved Hide resolved
vignettes/dsl-errors.Rmd Outdated Show resolved Hide resolved
vignettes/dsl-errors.Rmd Outdated Show resolved Hide resolved
vignettes/dsl-errors.Rmd Outdated Show resolved Hide resolved
@weshinsley weshinsley merged commit 6051efe into main Aug 6, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants