Skip to content

Commit

Permalink
refactor(AWS HTTP API): Unify warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Apr 6, 2020
1 parent 08ad5ce commit 8d4ed6d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/plugins/aws/package/compile/events/httpApi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,17 +398,17 @@ Object.defineProperties(
logWarning(
`HTTP API endpoint timeout setting (${routeTargetData.timeout}s) is ` +
`lower or equal to function (${functionName}) timeout (${functionTimeout}s). ` +
'This may introduce situations where endpoint times out ' +
'for succesful lambda invocation.'
'This may introduce a situation where endpoint times out ' +
'for a succesful lambda invocation.'
);
}
} else {
if (functionTimeout > 29) {
logWarning(
`Function (${functionName}) timeout setting (${functionTimeout}) is greater than ` +
'maximum allowed timeout for HTTP API endpoint (29s). ' +
'This may introduce situation where endpoint times out ' +
'for succesful lambda invocation.'
'This may introduce a situation where endpoint times out ' +
'for a succesful lambda invocation.'
);
} else if (functionTimeout === 29) {
logWarning(
Expand Down

0 comments on commit 8d4ed6d

Please sign in to comment.