Skip to content

Add SNAFU error handling#71

Open
peopleig wants to merge 1 commit intosdslabs:refactorfrom
peopleig:error_handling
Open

Add SNAFU error handling#71
peopleig wants to merge 1 commit intosdslabs:refactorfrom
peopleig:error_handling

Conversation

@peopleig
Copy link
Contributor

@peopleig peopleig commented Feb 6, 2026

Added snafu to crates - api, defs, grpc, http, index, server, and storage

Made sure of correct mapping between internal codes and gRPC status codes.
Same with HTTP status codes
So, now the errors are exactly mapped to their respective status codes

Fixes #50

@4adex
Copy link
Collaborator

4adex commented Mar 9, 2026

change crates/grpc/src/errors.rs to crates/grpc/src/error.rs for consistent naming. Else all good.

@peopleig peopleig force-pushed the error_handling branch 3 times, most recently from 2e159be to 59a5843 Compare March 9, 2026 10:08
@peopleig
Copy link
Contributor Author

peopleig commented Mar 9, 2026

@4adex done with the changes

@4adex
Copy link
Collaborator

4adex commented Mar 9, 2026

@Arshdeep54 good to merge from my side

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.

Implement Error Handling using Snfau

2 participants