Skip to content

Commit

Permalink
Merge pull request #16 from chientrm/15-errors-are-wrapped
Browse files Browse the repository at this point in the history
Errors are wrapped
  • Loading branch information
chientrm authored Dec 29, 2023
2 parents 7c08e36 + 59ee967 commit d061a1c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/proxies/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ import { ProxyHolder } from './proxy_holder';

const checkOk = async (response: Response) => {
if (!response.ok) {
throw new Error(
JSON.stringify({
status: response.status,
statusText: response.statusText,
message: await response.text(),
})
);
throw new Error(await response.text());
}
};

Expand Down

0 comments on commit d061a1c

Please sign in to comment.