mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-17 21:40:39 -07:00
fix: expose originalError from LiquidError, #742
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ const TRAIT = '__liquidClass__'
|
||||
export abstract class LiquidError extends Error {
|
||||
public token!: Token
|
||||
public context = ''
|
||||
private originalError?: Error
|
||||
public originalError?: Error
|
||||
public constructor (err: Error | string, token: Token) {
|
||||
/**
|
||||
* note: for ES5 targeting, `this` will be replaced by return value of Error(),
|
||||
|
||||
Reference in New Issue
Block a user