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

feat: improve error handling with hint #816

Merged
merged 2 commits into from
Dec 16, 2021

Conversation

corneliusroemer
Copy link
Member

Description of proposed changes

Provides helpful error message when root is not found in tree

Related issue(s)

resolves #815

@codecov
Copy link

codecov bot commented Dec 15, 2021

Codecov Report

Merging #816 (3d1cbf8) into master (a3a79ca) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #816      +/-   ##
==========================================
- Coverage   33.81%   33.79%   -0.02%     
==========================================
  Files          41       41              
  Lines        5900     5903       +3     
  Branches     1465     1465              
==========================================
  Hits         1995     1995              
- Misses       3822     3825       +3     
  Partials       83       83              
Impacted Files Coverage Δ
augur/refine.py 5.37% <0.00%> (-0.09%) ⬇️

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 a3a79ca...3d1cbf8. Read the comment docs.

augur/refine.py Outdated Show resolved Hide resolved
@emmahodcroft
Copy link
Member

This seems like a good idea to me Cornelius! Helping to avoid cryptic error messages makes a huge difference. Thanks for tackling it!

@corneliusroemer corneliusroemer merged commit 6585427 into master Dec 16, 2021
@corneliusroemer corneliusroemer deleted the feat/informative-error branch December 16, 2021 20:56
@huddlej huddlej added this to the Patch release 13.1.1 milestone Jan 10, 2022
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.

refine: More informative error message for ValueError: target 'J' is not in this tree
5 participants