Skip to content

Commit

Permalink
print which command failed
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Dec 29, 2020
1 parent 37a2f6d commit b5acce7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/setup-storage/Exec.pm
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ sub execute_command_internal {
&& (grep {$_ == $exit_code} @{ $err->{exit_codes} })) {

if ($err->{error} =~ /catch_all_nonzero_exit_code/) {
print "$command had exit code $exit_code\n";
print "(STDERR) $_" foreach (@stderr);
print "(STDOUT) $_" foreach (@stdout);
}
Expand Down

0 comments on commit b5acce7

Please sign in to comment.