-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: enhance error handling and API documentation
- Add `github.com/KusionStack/karpor/pkg/core/handler` import - Replace direct `http.Error` calls with `handler.FailureRender` - Add new HTTP status codes (401, 429, 404) to API documentation - Log the start of the YAML interpretation process These changes centralize error handling and provide more detailed API documentation, improving maintainability and user feedback.
- Loading branch information
Showing
1 changed file
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters