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 an ability to mark error as unrecoverable #18

Merged
merged 5 commits into from
Jul 13, 2019

Conversation

sjanota
Copy link
Contributor

@sjanota sjanota commented Jul 12, 2019

There is a possibility to short-circuit the execution if an error is unrecoverable using RetryIf function. However, I find it ugly to match error strings and inconvenient to create separate types for unrecoverable errors all the time. So I thought about a built-in way to handle simple unrecoverable errors.

@codecov-io
Copy link

codecov-io commented Jul 12, 2019

Codecov Report

Merging #18 into master will increase coverage by 0.36%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #18      +/-   ##
==========================================
+ Coverage   96.77%   97.14%   +0.36%     
==========================================
  Files           2        2              
  Lines          62       70       +8     
==========================================
+ Hits           60       68       +8     
  Misses          2        2
Impacted Files Coverage Δ
options.go 100% <ø> (ø) ⬆️
retry.go 95.83% <100%> (+0.83%) ⬆️

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 88ef213...3582641. Read the comment docs.

Copy link
Collaborator

@JaSei JaSei left a comment

Choose a reason for hiding this comment

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

Thank you - it looks great...

@JaSei JaSei merged commit 19e53a3 into avast:master Jul 13, 2019
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.14%. Comparing base (88ef213) to head (3582641).
Report is 169 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #18      +/-   ##
==========================================
+ Coverage   96.77%   97.14%   +0.36%     
==========================================
  Files           2        2              
  Lines          62       70       +8     
==========================================
+ Hits           60       68       +8     
  Misses          2        2              

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

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.

4 participants