From 138bbc3265a4c23b550e428246050c59c7cd547e Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Fri, 14 Jun 2019 13:21:15 +0200 Subject: [PATCH] Improve user mesage --- .../events/apiGateway/lib/hack/updateStage.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/plugins/aws/package/compile/events/apiGateway/lib/hack/updateStage.js b/lib/plugins/aws/package/compile/events/apiGateway/lib/hack/updateStage.js index 0aa14e06b..d08165613 100644 --- a/lib/plugins/aws/package/compile/events/apiGateway/lib/hack/updateStage.js +++ b/lib/plugins/aws/package/compile/events/apiGateway/lib/hack/updateStage.js @@ -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);