Add context to error message (#11)

Part of [Fix error propagation from laconicd to client SDK](https://www.notion.so/Fix-error-propagation-from-laconicd-to-client-SDK-1bd20c5a4e8141a99e5809ea1fd7832f) and [Create laconic registry SDK](https://www.notion.so/Create-laconic-registry-SDK-d3a636d4aba44f7cbba3bd99b7146811)

- Use error in response raw log from laconicd
- TODO: Add error examples

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
Reviewed-on: cerc-io/registry-sdk#11
This commit is contained in:
nabarun 2024-04-08 04:04:13 +00:00
parent ad07856267
commit 25651a8e7a
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}`;
}
}