Fixed error reporting

This commit is contained in:
Patrick Steele-Idem 2014-05-07 14:51:48 -06:00
parent 71706fea9c
commit 24929b8734

View File

@ -66,7 +66,7 @@ TemplateCompiler.prototype = {
}
});
} catch (e) {
throw createError(new Error('Unable to compile template at path "' + templateBuilder.filePath + '". Error: ' + e.message), e);
throw createError(new Error('Unable to compile template at path "' + _this.path + '". Error: ' + e.message), e);
}
/*
* Now process the child nodes by looping over the child nodes