Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #175 from 0xR/patch-1
Browse files Browse the repository at this point in the history
Fix typo to get proper error message
  • Loading branch information
UnleashedMind authored Jul 30, 2018
2 parents 6b5e0dc + 5990ba5 commit e88d842
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand All @@ -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)
}
}
}
Expand Down

0 comments on commit e88d842

Please sign in to comment.