Skip to content

Commit

Permalink
Merge pull request #33 from telstra/maintain/MessagingAPI-V3-SDK
Browse files Browse the repository at this point in the history
release 3.0.7
  • Loading branch information
zhanganderson authored Aug 23, 2024
2 parents c09f1bd + c50e590 commit 7e29502
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.0.6",
"version": "3.0.7",
"license": "Apache-2.0",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
5 changes: 4 additions & 1 deletion src/messaging/classes/HttpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ export abstract class HttpClient {

if (error.response?.status && error.response?.statusText) {
return Promise.reject(
new RequestError(Constants.ERRORS.UNKNOWN_ERROR)
new RequestError({
errorCode: `${error.response.status}`,
errorMessage: error.response.statusText,
})
);
}

Expand Down

0 comments on commit 7e29502

Please sign in to comment.