Record the errno if exec fails

This commit is contained in:
Graham Christensen
2021-11-18 13:46:56 -05:00
parent 4ce8239cea
commit 5bb3e2be78
3 changed files with 56 additions and 3 deletions

View File

@ -161,9 +161,9 @@ sub buildFinished {
$runlog->started();
system("$command") == 0
or warn "notification command '$command' failed with exit status $?\n";
or warn "notification command '$command' failed with exit status $? ($!)\n";
$runlog->completed_with_child_error($?);
$runlog->completed_with_child_error($?, $!);
}
}