Skip to content

Commit

Permalink
add proper instance declaration for ValidationFailedError
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Coquand committed Nov 24, 2020
1 parent d01dc6e commit 07188fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "6.0.0",
"version": "6.0.1",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export class ValidationFailedError extends Error {
constructor(error: DecodeError) {
super(`Decoding value failed: ${JSON.stringify(error)}`);
this.error = error;
Object.setPrototypeOf(this, ValidationFailedError.prototype);
}
}

Expand Down

0 comments on commit 07188fc

Please sign in to comment.