Skip to content

Commit

Permalink
run_clipserve: Give a better error message on exec() failure
Browse files Browse the repository at this point in the history
  • Loading branch information
cdown committed Apr 26, 2024
1 parent 145de37 commit f5b67c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ void run_clipserve(uint64_t hash) {
return;
}

expect(execvp(cmd[0], (char *const *)cmd) >= 0);
execvp(cmd[0], (char *const *)cmd);
die("Failed to exec %s: %s\n", cmd[0], strerror(errno));
}

/**
Expand Down

0 comments on commit f5b67c0

Please sign in to comment.