Route delete_comment through ensure_success for friendly not-found #184

Merged
stephen merged 1 commit from fix/delete-comment-ensure-success into main 2026-06-17 18:25:33 +00:00
Owner

Routes delete_comment through ensure_success instead of the bare res.error_for_status()?, so deleting a missing comment now yields a friendly not found: message and exits EXIT_NOT_FOUND (3) rather than EXIT_GENERIC (1), matching edit_comment. Promotes ensure_success to pub(crate) and adds a wiremock test asserting a 404 delete surfaces a not-found error. Closes #150.

Routes `delete_comment` through `ensure_success` instead of the bare `res.error_for_status()?`, so deleting a missing comment now yields a friendly `not found:` message and exits `EXIT_NOT_FOUND` (3) rather than `EXIT_GENERIC` (1), matching `edit_comment`. Promotes `ensure_success` to `pub(crate)` and adds a wiremock test asserting a 404 delete surfaces a not-found error. Closes #150.
Map issue comment delete errors through ensure_success
All checks were successful
ci / check (pull_request) Successful in 9m45s
ci / live-e2e (pull_request) Successful in 1m44s
ci / coverage (pull_request) Successful in 2m1s
beab057ea9
stephen deleted branch fix/delete-comment-ensure-success 2026-06-17 18:25:33 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rasterstate/fj!184
No description provided.