Skip to content

Commit

Permalink
Merge pull request #6254 from serverless/improve-user-message
Browse files Browse the repository at this point in the history
Improve user message
  • Loading branch information
medikoo committed Jun 17, 2019
2 parents c220e94 + 138bbc3 commit aedfbf2
Showing 1 changed file with 6 additions and 7 deletions.
Expand Up @@ -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);
Expand Down

0 comments on commit aedfbf2

Please sign in to comment.