Skip to content

Commit c50e590

Browse files
committed
release 3.0.7
1 parent 671d95c commit c50e590

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "3.0.6",
2+
"version": "3.0.7",
33
"license": "Apache-2.0",
44
"main": "dist/index.js",
55
"typings": "dist/index.d.ts",

src/messaging/classes/HttpClient.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ export abstract class HttpClient {
161161

162162
if (error.response?.status && error.response?.statusText) {
163163
return Promise.reject(
164-
new RequestError(Constants.ERRORS.UNKNOWN_ERROR)
164+
new RequestError({
165+
errorCode: `${error.response.status}`,
166+
errorMessage: error.response.statusText,
167+
})
165168
);
166169
}
167170

0 commit comments

Comments
 (0)