mirror of
https://github.com/moghtech/komodo.git
synced 2025-12-05 19:17:36 -06:00
[PR #805] Improve KomodoClient experience for URL and Error handling #792
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/805
Author: @FoxxMD
Created: 9/4/2025
Status: 🔄 Open
Base:
main← Head:apiClientImprove📝 Commits (2)
e5f5552feat: Make client URL usage more lenientc9050c7feat: Use proper Error class when throwing client response errors📊 Changes
1 file changed (+65 additions, -18 deletions)
View changed files
📝
client/core/ts/src/lib.ts(+65 -18)📄 Description
This PR improves the developer experience for using the
komodo_clientnpm package:KomodoApiErrorclass extendingError, used for api response rejection instead of plain objectMany third party logging and network-wrapping libraries are used to handling rejected/thrown
Errorinstances, so using a realErrormeans developers and end users get better readability and visibility into errors for free.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.