fix: expose originalError from LiquidError, #742

This commit is contained in:
Yang Jun
2024-08-29 11:37:56 +08:00
committed by Jun Yang
parent 62bb20e433
commit 86f6bf0d31
2 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -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(),