Skip to content

Commit

Permalink
Merge pull request #68 from Polymarket/fix/error-handling
Browse files Browse the repository at this point in the history
fix/error-payloads
  • Loading branch information
poly-rodr authored Jan 19, 2023
2 parents cfa9d25 + 4841ea9 commit 7f987dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@polymarket/clob-client",
"description": "Typescript client for Polymarket's CLOB",
"version": "1.1.18",
"version": "1.1.19",
"contributors": [
{
"name": "Jonathan Amenechi",
Expand Down
2 changes: 1 addition & 1 deletion src/http-helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const request = async (
statusText: err.response?.statusText,
data: err.response?.data,
});
return { error: err.response?.data };
return err.response?.data;
}
console.error(err);

Expand Down

0 comments on commit 7f987dc

Please sign in to comment.