Skip to content

Commit

Permalink
Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_… (
Browse files Browse the repository at this point in the history
#2907)

* Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1

* add error message
  • Loading branch information
odykyi authored Mar 13, 2020
1 parent b140a5d commit 0527659
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "bugfix",
"category": "AWS.EventListeners.Core",
"description": "add error message"
}
2 changes: 1 addition & 1 deletion lib/event_listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ AWS.EventListeners = {
req.service.config.getCredentials(function(err) {
if (err) {
req.response.error = AWS.util.error(err,
{code: 'CredentialsError', message: 'Missing credentials in config'});
{code: 'CredentialsError', message: 'Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1'});
}
done();
});
Expand Down

0 comments on commit 0527659

Please sign in to comment.