aboutsummaryrefslogtreecommitdiff
path: root/node_modules/tslint/lib/ruleLoader.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/tslint/lib/ruleLoader.js')
-rw-r--r--node_modules/tslint/lib/ruleLoader.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/node_modules/tslint/lib/ruleLoader.js b/node_modules/tslint/lib/ruleLoader.js
index 1debe3931..acc7a3881 100644
--- a/node_modules/tslint/lib/ruleLoader.js
+++ b/node_modules/tslint/lib/ruleLoader.js
@@ -101,7 +101,6 @@ function loadRule(directory, ruleName) {
return "not-found";
}
function loadCachedRule(directory, ruleName, isCustomPath) {
- if (isCustomPath === void 0) { isCustomPath = false; }
// use cached value if available
var fullPath = path.join(directory, ruleName);
var cachedRule = cachedRules.get(fullPath);
@@ -113,7 +112,7 @@ function loadCachedRule(directory, ruleName, isCustomPath) {
if (isCustomPath) {
absolutePath = configuration_1.getRelativePath(directory);
if (absolutePath !== undefined && !fs.existsSync(absolutePath)) {
- throw new Error("Could not find custom rule directory: " + directory);
+ throw new error_1.FatalError("Could not find custom rule directory: " + directory);
}
}
var Rule = absolutePath === undefined ? "not-found" : loadRule(absolutePath, ruleName);