mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 20:30:39 -07:00
refactor: use assert, fix: respect to express settings.views, close #16
This commit is contained in:
+11
-1
@@ -35,6 +35,16 @@ function RenderBreak(message){
|
||||
RenderBreak.prototype = Object.create(Error.prototype);
|
||||
RenderBreak.prototype.constructor = RenderBreak;
|
||||
|
||||
function AssertionError(message){
|
||||
if(Error.captureStackTrace){
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
this.name = this.constructor.name;
|
||||
this.message = message;
|
||||
}
|
||||
AssertionError.prototype = Object.create(Error.prototype);
|
||||
AssertionError.prototype.constructor = AssertionError;
|
||||
|
||||
module.exports = {
|
||||
TokenizationError, ParseError, RenderBreak
|
||||
TokenizationError, ParseError, RenderBreak, AssertionError
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user