Refactor error management in API part #10
No reviewers
Labels
No Label
AdminAPI
Bug
Check AWS
CI
Correctness
Critical
Documentation
Ideas
Improvement
Low priority
Newcomer
Performance
S3 Compatibility
Testing
Usability
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#10
Loading…
Reference in New Issue
No description provided.
Delete Branch "error-refactoring"
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?
Create distinct Error type for everything API related, for cleaner separation of concerns. Also introduce ok_or_bad_request and ok_or_internal_error combinators for easier writing of API functions.