Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
fix: set proper prototype of BadParameterError
Browse files Browse the repository at this point in the history
  • Loading branch information
gigobyte committed May 8, 2020
1 parent 9273157 commit ef0a38d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class ParsingError extends MWSError {
export class BadParameterError extends MWSError {
constructor(public error: string, ...parameters: string[]) {
super(...parameters)
Object.setPrototypeOf(this, ParsingError.prototype)
Object.setPrototypeOf(this, BadParameterError.prototype)
}
}
/* eslint-enable max-classes-per-file */

0 comments on commit ef0a38d

Please sign in to comment.