fj pr comment delete: missing comment returns raw error (wrong exit code, no friendly message) #150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Found during the #131 red-CI fix (PR #149).
delete_commentbypassesensure_success, so deleting a missing comment returns a rawreqwesterror instead of anApiError. Consequences vsedit_comment:not found:message.error_exit_codecan't downcast it, so the process exitsEXIT_GENERIC(1) instead ofEXIT_NOT_FOUND(3).Fix: route
delete_commentthroughensure_successlikeedit_comment, so the error type, message, and exit code are consistent. Small, behavior-aligning change; add a test for the missing-comment delete path.