Skip to content

Commit

Permalink
Include exit status in job failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelforney committed Jun 18, 2023
1 parent d3a7458 commit 9d27eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ jobdone(struct job *j)
j->failed = true;
} else if (WIFEXITED(status)) {
if (WEXITSTATUS(status) != 0) {
warn("job failed: %s", j->cmd->s);
warn("job failed with status %d: %s", WEXITSTATUS(status), j->cmd->s);
j->failed = true;
}
} else if (WIFSIGNALED(status)) {
Expand Down

0 comments on commit 9d27eb2

Please sign in to comment.