Skip to content

Commit

Permalink
Slightly improved error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
yayuyokitano authored Nov 24, 2020
1 parent fbcd288 commit 90a424f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default class LFMRequest {

let error = {
...new Error(this.response.statusText),
response: this.response
response: await this.response.json()
};

throw error;
Expand Down

0 comments on commit 90a424f

Please sign in to comment.