From 8d4ed6dd2a82bcd2f4db29bddadb724bf6e6184b Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Mon, 6 Apr 2020 16:57:07 +1200 Subject: [PATCH] refactor(AWS HTTP API): Unify warning messages --- lib/plugins/aws/package/compile/events/httpApi/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/plugins/aws/package/compile/events/httpApi/index.js b/lib/plugins/aws/package/compile/events/httpApi/index.js index 75cb929cd..bced48716 100644 --- a/lib/plugins/aws/package/compile/events/httpApi/index.js +++ b/lib/plugins/aws/package/compile/events/httpApi/index.js @@ -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(