kin-labs / kinetic

MIT License
40 stars 24 forks source link

fix: make KineticSdk throw clean error messages instead of response object #504

Closed beeman closed 1 year ago

beeman commented 1 year ago

This patch fixes the issue that the SDK currently returns the raw Axios response object with the errors hidden deep inside. Instead, errors now return a string with the error message or 'Unknown error'.

nx-cloud[bot] commented 1 year ago

☁️ Nx Cloud Report

CI is running/has finished running commands for commit ad55f15e64a5eb2d86c488e03ce4c492c59060a9. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 3 targets - [`nx e2e api-e2e --skip-nx-cache`](https://cloud.nx.app/runs/VTvdShgy3x) - [`nx e2e sdk-e2e --skip-nx-cache`](https://cloud.nx.app/runs/HQce28Q7gb) - [`nx e2e web-e2e --skip-nx-cache`](https://cloud.nx.app/runs/7cwGMe3RZR)

Sent with 💌 from NxCloud.