From 759d671df19508ee8cde17187f97bc6749f46962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Thu, 5 Mar 2020 11:20:49 +0900 Subject: [PATCH] Don't print --- ecmascript/preset_env/src/lib.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ecmascript/preset_env/src/lib.rs b/ecmascript/preset_env/src/lib.rs index 30564ac138b..581ae5d4535 100644 --- a/ecmascript/preset_env/src/lib.rs +++ b/ecmascript/preset_env/src/lib.rs @@ -509,12 +509,13 @@ impl Query { .output() .expect("failed to collect output"); - println!( - "{}\n{}", - String::from_utf8_lossy(&output.stdout), - String::from_utf8_lossy(&output.stderr), - ); if !output.status.success() { + println!( + "{}\n{}", + String::from_utf8_lossy(&output.stdout), + String::from_utf8_lossy(&output.stderr), + ); + println!("query.js: Status {:?}", output.status,); return Err(()); }