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

Commit

Permalink
fix: add error message to parsing error
Browse files Browse the repository at this point in the history
  • Loading branch information
gigobyte committed May 9, 2020
1 parent c77f731 commit d57ed19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ export class HttpError extends MWSError {
}

export class ParsingError extends MWSError {
public message = 'MWS: Encountered an error while parsing a response'
public message = 'MWS: Encountered an error while parsing a response: '

constructor(public error: string, ...parameters: string[]) {
super(...parameters)
this.message += error
Object.setPrototypeOf(this, ParsingError.prototype)

if (Error.captureStackTrace) {
Expand Down

0 comments on commit d57ed19

Please sign in to comment.