Skip to content

Commit 8a0d675

Browse files
committed
Undo sdk changes
1 parent 5e3468e commit 8a0d675

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

packages/sdk/CHANGELOG.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
# Changelog
44

5-
## [1.3.3] - 2025-02-4
6-
7-
### Changed
8-
9-
- Fix SDK error handler so that it throws a JSON string instead of an unparseable string object
10-
115
## [1.3.2] - 2025-02-3
126

137
### Changed

packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pipedream/sdk",
33
"type": "module",
4-
"version": "1.3.3",
4+
"version": "1.3.2",
55
"description": "Pipedream SDK",
66
"main": "./dist/server.js",
77
"module": "./dist/server.js",

packages/sdk/src/shared/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -960,10 +960,7 @@ export abstract class BaseClient {
960960
if (!response.ok) {
961961
const errorBody = await response.text();
962962
throw new Error(
963-
JSON.stringify({
964-
message: `HTTP error! status: ${response.status}`,
965-
data: errorBody,
966-
}),
963+
`HTTP error! status: ${response.status}, body: ${errorBody}`,
967964
);
968965
}
969966

0 commit comments

Comments
 (0)