Skip to content

refactor: change error definition in feature PKG to Bucketeer error - #2120

Merged
kakcy merged 4 commits into
mainfrom
refactor-error-handle-feature
Sep 24, 2025
Merged

refactor: change error definition in feature PKG to Bucketeer error#2120
kakcy merged 4 commits into
mainfrom
refactor-error-handle-feature

Conversation

@kakcy

@kakcy kakcy commented Sep 10, 2025

Copy link
Copy Markdown
Contributor

This pull request refactors error handling in the feature API to use a centralized error definition and conversion approach, improving consistency and maintainability. The main changes include replacing direct gRPC status construction with error objects from the core error package, introducing a new error type for failed preconditions, and updating how errors are converted to gRPC status codes and messages.

@kakcy
kakcy marked this pull request as ready for review September 11, 2025 09:15
# Conflicts:
#	pkg/api/api/grpc_status.go
#	pkg/error/error.go

@nnnkkk7 nnnkkk7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
LGTM!

@kakcy
kakcy merged commit 358ff0b into main Sep 24, 2025
19 of 20 checks passed
@kakcy
kakcy deleted the refactor-error-handle-feature branch September 24, 2025 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants