Skip to content

Commit

Permalink
Return stderr instead of stdout in case of non-successfull execution
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumsheep committed May 25, 2021
1 parent a0f1c9a commit a77122e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ where
match isolated_box.exec(command, options) {
Ok(result) => {
if error_if_not_success && !result.status.success() {
return Err(result.stdout);
return Err(result.stderr);
}

Ok(result)
Expand Down

0 comments on commit a77122e

Please sign in to comment.