mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
remove redundant service list
This commit is contained in:
parent
a1563a3a73
commit
228d52cc7c
@ -69,10 +69,11 @@ class Service {
|
||||
};
|
||||
}
|
||||
|
||||
if (['aws', 'azure', 'google', 'ibm'].indexOf(serverlessFile.provider.name) === -1) {
|
||||
const providers = ['aws', 'azure', 'google', 'ibm'];
|
||||
if (providers.indexOf(serverlessFile.provider.name) === -1) {
|
||||
const errorMessage = [
|
||||
`Provider "${serverlessFile.provider.name}" is not supported.`,
|
||||
' Valid values for provider are: aws, azure, google, ibm.',
|
||||
` Valid values for provider are: ${providers.join(', ')}.`,
|
||||
' Please provide one of those values to the "provider" property in serverless.yml.',
|
||||
].join('');
|
||||
throw new SError(errorMessage);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user