-
Notifications
You must be signed in to change notification settings - Fork 930
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
Opt: opt err handling #536
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Travis still failing
Codecov Report
@@ Coverage Diff @@
## develop #536 +/- ##
===========================================
- Coverage 66.55% 66.32% -0.24%
===========================================
Files 184 184
Lines 9729 9712 -17
===========================================
- Hits 6475 6441 -34
- Misses 2613 2629 +16
- Partials 641 642 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor problem
err = staticDir.BuildRouterChain(invokers) | ||
if err != nil { | ||
logger.Error(err) | ||
continue | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this
err = staticDir.BuildRouterChain(invokers) | |
if err != nil { | |
logger.Error(err) | |
continue | |
} | |
if err = staticDir.BuildRouterChain(invokers); err != nil { | |
logger.Error(err) | |
continue | |
} |
What this PR does:
optimize error handling
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: