Skip to content

Commit

Permalink
chore: remove req id from client error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmbl committed Apr 12, 2024
1 parent 42a7964 commit 5d0b960
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## [1.7.7] - 2024-04-12

- feat: hide req id from client error message

## [1.7.6] - 2024-04-11

- feat: expose find dapp api
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dialectlabs/sdk",
"version": "1.7.6",
"version": "1.7.7",
"repository": "[email protected]:dialectlabs/sdk.git",
"author": "dialectlabs",
"license": "Apache-2.0",
Expand Down
5 changes: 2 additions & 3 deletions packages/sdk/src/dialect-cloud-api/data-service-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export async function withErrorParsing<T>(
try {
return await promise;
} catch (e) {
console.error(e);
if (e instanceof NetworkError) {
throw new DialectCloudUnreachableError([e]);
}
Expand Down Expand Up @@ -49,7 +50,5 @@ export async function withErrorParsing<T>(
}

function createMessage(e: DataServiceApiError) {
return `${e.message ?? e.error}. ${
e.requestId ? `Request ID: ${e.requestId}` : ''
}`;
return `${e.message ?? e.error}`;
}

0 comments on commit 5d0b960

Please sign in to comment.