AKCLIP_SET_CMD failure silently falls through to default path #40
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
akinus/akclip#40
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?
In src/main.rs (around line 110), when AKCLIP_SET_CMD is set:
If the custom command runs but exits non-zero, this block silently falls through to the default clipboard setting path. So the user sees no error, but their custom command failed. The error case should be reported (eprintln! + exit 1) instead of silently ignored.
Expected: when AKCLIP_SET_CMD exits non-zero, print an error to stderr and exit with status 1.
Reproduction: