Skip to content

Commit

Permalink
combine stderr with stdout on err
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Sep 29, 2020
1 parent 4670739 commit 8876fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exec.rs
Expand Up @@ -35,6 +35,6 @@ pub async fn exec(
if output.status.success() {
Ok(from_utf8(&output.stdout)?.to_string())
} else {
Err(anyhow!(from_utf8(&output.stderr)?.to_string()).into())
Err(anyhow!(vec![from_utf8(&output.stderr)?, from_utf8(&output.stdout)?].join("\n")).into())
}
}

0 comments on commit 8876fdb

Please sign in to comment.