feat: export errors for better error handling in user-land

This commit is contained in:
Laurin Quast
2021-05-01 19:06:33 +08:00
committed by Jun Yang
parent 251a50801c
commit 4e394b9072
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -15,6 +15,7 @@ import { FilterImplOptions } from './template/filter/filter-impl-options'
import { toPromise, toValue } from './util/async'
import { Emitter } from './render/emitter'
export * from './util/error'
export * from './types'
export class Liquid {
+1 -1
View File
@@ -2,7 +2,7 @@ import * as _ from './underscore'
import { Token } from '../tokens/token'
import { Template } from '../template/template'
abstract class LiquidError extends Error {
export abstract class LiquidError extends Error {
private token: Token
private originalError: Error
public constructor (err: Error, token: Token) {