Skip to content

Commit

Permalink
fix: sdk to not swallow errors (#302)
Browse files Browse the repository at this point in the history
* fix: sdk to not swallow errors

* do it

* update other places
  • Loading branch information
guibescos authored Dec 30, 2024
1 parent 3d7891b commit 8b6b44d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sdk/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pythnetwork/express-relay-js",
"version": "0.16.1",
"version": "0.17.0",
"description": "Utilities for interacting with the express relay protocol",
"homepage": "https://github.com/pyth-network/per/tree/main/sdk/js",
"author": "Douro Labs",
Expand Down
8 changes: 4 additions & 4 deletions sdk/js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ export class Client {
});
if (response.error) {
throw ClientError.newHttpError(
response.error.error,
JSON.stringify(response.error),
response.response.status
);
}
Expand Down Expand Up @@ -467,7 +467,7 @@ export class Client {
});
if (response.error) {
throw ClientError.newHttpError(
response.error.error,
JSON.stringify(response.error),
response.response.status
);
}
Expand Down Expand Up @@ -503,7 +503,7 @@ export class Client {
});
if (response.error) {
throw ClientError.newHttpError(
response.error.error,
JSON.stringify(response.error),
response.response.status
);
} else if (response.data === undefined) {
Expand All @@ -526,7 +526,7 @@ export class Client {
});
if (response.error) {
throw ClientError.newHttpError(
response.error.error,
JSON.stringify(response.error),
response.response.status
);
} else if (response.data === undefined) {
Expand Down

0 comments on commit 8b6b44d

Please sign in to comment.