mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Clarify the error message reporting that an account ID could not be loaded to indicate the valid sources of an account ID.
This commit is contained in:
parent
5406973b1a
commit
a478a3dd78
@ -131,7 +131,7 @@ module.exports = function(S) {
|
||||
|
||||
// If no iamRoleLambda, throw error
|
||||
if (!_this.awsAccountNumber) {
|
||||
throw new SError('No Lambda IAM Role found');
|
||||
throw new SError('Neither an accountId variable nor a Lambda IAM Role variable containing the account ID were found');
|
||||
}
|
||||
|
||||
// Get populated endpoint
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user