mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
feat: export errors for better error handling in user-land
This commit is contained in:
@@ -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
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user