From bb3b766946311848c707abc0fc7e749393f4527c Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Wed, 2 Jun 2021 13:47:44 +0200 Subject: [PATCH] fix(Variables): Unify error messaging for function resolvers --- lib/configuration/variables/sources/file.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/configuration/variables/sources/file.js b/lib/configuration/variables/sources/file.js index 634c0ae58e1..0f7741544aa 100644 --- a/lib/configuration/variables/sources/file.js +++ b/lib/configuration/variables/sources/file.js @@ -169,8 +169,9 @@ module.exports = { throw new ServerlessError( `Cannot resolve "${address}" out of "${path.basename( filePath - )}": Resolved a JS function not confirmed to work with a new parser, ` + - 'falling back to old resolver', + )}": Approached a JS function resolver, confirm it's updated to work with a ` + + 'new parser by setting "variablesResolutionMode: 20210326" in service config. ' + + 'Falling back to old resolver', 'FILE_CONTENT_RESOLUTION_ERROR' ); }