Skip to content

Commit

Permalink
fix(Variables): Unify error messaging for function resolvers
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Jun 2, 2021
1 parent 3715989 commit bb3b766
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/configuration/variables/sources/file.js
Expand Up @@ -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'
);
}
Expand Down

0 comments on commit bb3b766

Please sign in to comment.