Merge pull request #6254 from serverless/improve-user-message

Improve user message
This commit is contained in:
Mariusz Nowak 2019-06-17 13:48:04 +02:00 committed by GitHub
commit aedfbf289d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,13 +38,12 @@ module.exports = {
}
const errorMessage = [
'Rest API could not be resolved. ',
'This might be casued by a custom API Gateway setup. ',
'With you current setup stage specific configurations such as ',
'`tracing`, `logs` and `tags` are not supported',
'',
'Please update your configuration or open up an issue if you feel ',
'that there\'s a way to support your setup.',
'Rest API id could not be resolved.\n',
'This might be caused by a custom API Gateway configuration.\n\n',
'In given setup stage specific options such as ',
'`tracing`, `logs` and `tags` are not supported.\n\n',
'Please update your configuration (or open up an issue if you feel ',
'that there\'s a way to support your setup).',
].join('');
throw new Error(errorMessage);