Skip to content

Commit

Permalink
fix(lambda): warn about misconfiguration instead of exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
ZauberNerd authored and dmbch committed Feb 22, 2018
1 parent e08002e commit 4fd8f21
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/lambda/lib/aws-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,15 @@ module.exports = function getAWSConfig() {
config.basePath.indexOf(config.stageName) !== 0 &&
hopsConfig.assetPath.indexOf(config.stageName) !== 0
) {
console.error(
console.warn(
'When no custom domain is configured, the stageName (' +
config.stageName +
') must be the first path segment in basePath (' +
') should be the first path segment in basePath (' +
config.basePath +
') and assetPath (' +
hopsConfig.assetPath +
').'
);
process.exit(1);
}

if (config.domainName && !config.certificateArn) {
Expand Down

0 comments on commit 4fd8f21

Please sign in to comment.