Skip to content

move error context into enum #139

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

Merged
merged 8 commits into from
Jun 30, 2022
Merged

Conversation

samuelcolvin
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Jun 29, 2022

Codecov Report

Merging #139 (d52871c) into error-improvements (aa7b7b1) will increase coverage by 0.12%.
The diff coverage is 98.92%.

@@                  Coverage Diff                   @@
##           error-improvements     #139      +/-   ##
======================================================
+ Coverage               97.22%   97.35%   +0.12%     
======================================================
  Files                      42       41       -1     
  Lines                    4043     4007      -36     
  Branches                   28       28              
======================================================
- Hits                     3931     3901      -30     
+ Misses                    112      106       -6     
Impacted Files Coverage Δ
src/build_tools.rs 98.43% <ø> (ø)
src/errors/mod.rs 92.30% <ø> (ø)
src/errors/line_error.rs 89.55% <87.50%> (-1.70%) ⬇️
src/validators/function.rs 95.00% <93.75%> (+0.14%) ⬆️
src/input/input_python.rs 98.20% <97.50%> (+<0.01%) ⬆️
src/errors/kinds.rs 100.00% <100.00%> (+75.00%) ⬆️
src/errors/validation_exception.rs 96.46% <100.00%> (+0.42%) ⬆️
src/input/datetime.rs 97.98% <100.00%> (+0.06%) ⬆️
src/input/input_json.rs 96.02% <100.00%> (ø)
src/input/shared.rs 100.00% <100.00%> (ø)
... and 20 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aa7b7b1...d52871c. Read the comment docs.

@samuelcolvin samuelcolvin marked this pull request as ready for review June 30, 2022 15:10
@samuelcolvin samuelcolvin merged commit 31a242d into error-improvements Jun 30, 2022
@samuelcolvin samuelcolvin deleted the context-in-enum branch June 30, 2022 15:10
samuelcolvin added a commit that referenced this pull request Jul 2, 2022
* making val_line_error a function

* simplify context

* simplify location

* better error creation

* cleanup

* update context! macro

* more cleanup

* move error context into enum (#139)

* move error context into enum

* tweak

* simplify error rendering

* use static strings where possible

* tweak error kind rendering

* improve coverage

* improve coverage

* cleanup

* remove unused code

* correct imports

* cleanup location logic
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.

1 participant