Skip to content

Commit 39ff1f1

Browse files
committed
Throw a real error
1 parent bc4120b commit 39ff1f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/runner.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ Runner.prototype.link = function(test) {
4949
}
5050

5151
function getIncludesFor(file) {
52-
file.attrs.includes.forEach(function(dep) {
53-
if(!helpers[dep]) throw 'Helper not found: ' + dep;
52+
file.attrs.includes.forEach(function(dep) {
53+
if(!helpers[dep]) throw new Error('Helper not found: ' + dep);
5454
if(included.indexOf(dep) > -1) return;
5555

5656
includeContent += helpers[dep].contents;
57-
57+
5858
getIncludesFor(helpers[dep]);
5959
})
6060
}

0 commit comments

Comments
 (0)