Skip to content

Commit

Permalink
fix(utils/errors): fixes wrap configuration to always overwrite message
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed Apr 26, 2019
1 parent c494a08 commit dc341f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ export class CustomError<T> extends Errorish<T> {}

export class OpenError<T> extends CustomError<T> {}

export class WrappedError<T> extends CustomError<T> {}

export const open = scope.set('_kpo_open_', {
Error: CustomError,
Errorish: OpenError
});

export class WrappedError<T> extends CustomError<T> {}

export const wrap = scope.set('_kpo_wrap_', {
allow: [],
Error: CustomError,
Errorish: WrappedError
});

0 comments on commit dc341f4

Please sign in to comment.