-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
chroe(geo): better error handling when missing location service resources #8899
Conversation
logger.debug('Set credentials for storage. Credentials are:', cred); | ||
this._config.credentials = cred; | ||
return true; | ||
} catch (error) { | ||
logger.warn('ensure credentials error', error); | ||
logger.warn('Ensure credentials error. Credentials are:', error); |
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.
Should we be logging the credentials at all here?
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.
This is what we do with this function in other categories. It will help to debug when an error is happening due to different circumstances (undefined, malformed, etc)
Codecov Report
@@ Coverage Diff @@
## geo/staging #8899 +/- ##
===============================================
+ Coverage 78.00% 78.04% +0.04%
===============================================
Files 246 246
Lines 17660 17674 +14
Branches 3793 3797 +4
===============================================
+ Hits 13776 13794 +18
+ Misses 3755 3752 -3
+ Partials 129 128 -1
Continue to review full report at Codecov.
|
* choree(geo): better error handling when missing location service resources (#8899) * chore(geo): update config type * chore(geo): better error handling when missing resources * chore(geo): add test for no search index by coordinates * chore(geo): update error messaging to remind to `amplify push`
* choree(geo): better error handling when missing location service resources (#8899) * chore(geo): update config type * chore(geo): better error handling when missing resources * chore(geo): add test for no search index by coordinates * chore(geo): update error messaging to remind to `amplify push`
* choree(geo): better error handling when missing location service resources (#8899) * chore(geo): update config type * chore(geo): better error handling when missing resources * chore(geo): add test for no search index by coordinates * chore(geo): update error messaging to remind to `amplify push`
* choree(geo): better error handling when missing location service resources (#8899) * chore(geo): update config type * chore(geo): better error handling when missing resources * chore(geo): add test for no search index by coordinates * chore(geo): update error messaging to remind to `amplify push`
* choree(geo): better error handling when missing location service resources (#8899) * chore(geo): update config type * chore(geo): better error handling when missing resources * chore(geo): add test for no search index by coordinates * chore(geo): update error messaging to remind to `amplify push`
This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Description of changes
Adds better error handling to tell developers what's happening and what to do to solve the issue
Description of how you validated changes
Unit tests
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.