Skip to content

Commit deb8cdb

Browse files
chore: add extra logging to HTTPClient error Throwing (#432)
* Add extra logging Signed-off-by: Xavier Geerinck <[email protected]> * Completely replace the message Signed-off-by: Xavier Geerinck <[email protected]> Signed-off-by: Xavier Geerinck <[email protected]>
1 parent 15c9fa8 commit deb8cdb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/implementation/Client/HTTPClient/HTTPClient.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,7 @@ export default class HTTPClient implements IClient {
210210
throw new Error(
211211
JSON.stringify({
212212
error: "UNKNOWN",
213-
error_msg: `An unknown problem occurred and we got the status ${res.status} with response ${JSON.stringify(
214-
res,
215-
)}`,
213+
error_msg: txt,
216214
status: res.status,
217215
}),
218216
);

0 commit comments

Comments
 (0)