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

wrap errors #130

Merged
merged 3 commits into from
Mar 5, 2021
Merged

wrap errors #130

merged 3 commits into from
Mar 5, 2021

Conversation

JohnRoesler
Copy link
Contributor

What does this do?

  • when multiple errors occur, wrap them so the user can unwrap and check what happened
  • collapse/clean up tests

Which issue(s) does this PR fix/relate to?

List any changes that modify/break current functionality

Have you included tests for your changes?

Did you document any new/modified functionality?

  • Updated example_test.go
  • Updated README.md

Notes

@@ -8,6 +8,7 @@ package gocron

import (
"errors"
"fmt"

Choose a reason for hiding this comment

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

You should not really print anything on console for the package

Copy link
Member

Choose a reason for hiding this comment

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

From what I can see the fmt package here is used just to wrap errors, so this should be fine :-)

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.

3 participants