Skip to content

Commit

Permalink
Compatibility with statusMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed May 9, 2021
1 parent bf1dd33 commit 3648d84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/misc/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export async function receiveResponce<T>(req: Got.CancelableRequest<Got.Response
throw {
name: `StatusError`,
statusCode,
statusMessage,
message: `${statusCode} ${statusMessage}`,
};
} else {
Expand Down

0 comments on commit 3648d84

Please sign in to comment.