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

server: catch and return unhandled errors in interceptConfigs #7587

Merged

Conversation

odeke-em
Copy link
Collaborator

Catches and returns unhandled errors after stat-ing for the configFile,
instead of assuming that we'd only encounter a non-existent error.
Added a regression test to lock-in checks for unhandled errors like
Permission errors, which is representative of all the errors that
haven't been accounted for.

Fixes #7578


  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

Catches and returns unhandled errors after stat-ing for the configFile,
instead of assuming that we'd only encounter a non-existent error.
Added a regression test to lock-in checks for unhandled errors like
Permission errors, which is representative of all the errors that
haven't been accounted for.

Fixes #7578
@codecov
Copy link

codecov bot commented Oct 18, 2020

Codecov Report

Merging #7587 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #7587   +/-   ##
=======================================
  Coverage   54.19%   54.19%           
=======================================
  Files         610      610           
  Lines       38363    38363           
=======================================
  Hits        20791    20791           
  Misses      15465    15465           
  Partials     2107     2107           

Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

utACK

Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

nice, utACK

@amaury1093 amaury1093 added the A:automerge Automatically merge PR once all prerequisites pass. label Oct 20, 2020
@mergify mergify bot merged commit c6558fb into master Oct 20, 2020
@mergify mergify bot deleted the correctly-check-permissions-for-server-interceptConfigs branch October 20, 2020 12:41
@odeke-em
Copy link
Collaborator Author

Thank you for the reviews and merge @amaurymartiny @alexanderbez!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass.
Projects
None yet
3 participants