From a77122e73efe189b8e73deeede9fb38a8acc1011 Mon Sep 17 00:00:00 2001 From: quantumsheep Date: Tue, 25 May 2021 11:18:50 +0200 Subject: [PATCH] Return `stderr` instead of `stdout` in case of non-successfull execution --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index ee58212..0973b99 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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)