Skip to content

Commit

Permalink
feat: export errors for better error handling in user-land
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l authored and harttle committed May 1, 2021
1 parent 251a508 commit 4e394b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/liquid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/util/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4e394b9

Please sign in to comment.