Skip to content

Commit

Permalink
Throw a real error
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Dec 1, 2014
1 parent bc4120b commit 39ff1f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ Runner.prototype.link = function(test) {
}

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

includeContent += helpers[dep].contents;

getIncludesFor(helpers[dep]);
})
}
Expand Down

0 comments on commit 39ff1f1

Please sign in to comment.