refactor(AWS HTTP API): Unify warning messages

This commit is contained in:
Mariusz Nowak 2020-04-06 16:57:07 +12:00 committed by Mariusz Nowak
parent 08ad5ce040
commit 8d4ed6dd2a

View File

@ -398,8 +398,8 @@ 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 {
@ -407,8 +407,8 @@ Object.defineProperties(
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(