Route delete_comment through ensure_success for friendly not-found #184
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/delete-comment-ensure-success"
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?
Routes
delete_commentthroughensure_successinstead of the bareres.error_for_status()?, so deleting a missing comment now yields a friendlynot found:message and exitsEXIT_NOT_FOUND(3) rather thanEXIT_GENERIC(1), matchingedit_comment. Promotesensure_successtopub(crate)and adds a wiremock test asserting a 404 delete surfaces a not-found error. Closes #150.