diff --git a/lib/backend-operations/appsync-operations/helpers/helper-resolvers.js b/lib/backend-operations/appsync-operations/helpers/helper-resolvers.js index c0224c0..9becfe2 100644 --- a/lib/backend-operations/appsync-operations/helpers/helper-resolvers.js +++ b/lib/backend-operations/appsync-operations/helpers/helper-resolvers.js @@ -110,7 +110,7 @@ function readResolverMappings(containerDirPath, resolver){ if(fs.existsSync(requestMappingFilePath)){ resolver.requestMappingTemplate = fs.readFileSync(requestMappingFilePath).toString() }else{ - throw new error('can not find mapping file: ' + requestMappingFilePath) + throw new Error('can not find mapping file: ' + requestMappingFilePath) } } @@ -124,7 +124,7 @@ function readResolverMappings(containerDirPath, resolver){ if(fs.existsSync(responseMappingFilePath)){ resolver.responseMappingTemplate = fs.readFileSync(responseMappingFilePath).toString() }else{ - throw new error('can not find mapping file: ' + responseMappingFilePath) + throw new Error('can not find mapping file: ' + responseMappingFilePath) } } }