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

Fix typo to get proper error message #175

Merged
merged 1 commit into from
Jul 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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