Add context to error message #11

Merged
nabarun merged 2 commits from nv-handle-error into main 2024-04-08 04:04:15 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@cerc-io/registry-sdk",
"version": "0.2.1",
"version": "0.2.2",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": "git@github.com:cerc-io/registry-sdk.git",

View File

@ -383,6 +383,6 @@ export class LaconicClient extends SigningStargateClient {
console.error(error);
}
return errorMessage || DEFAULT_WRITE_ERROR;
return `${errorMessage || DEFAULT_WRITE_ERROR}: ${error}`;
}
}