File tree 2 files changed +5
-4
lines changed 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -465,8 +465,7 @@ fn krate_emscripten(build: &Build,
465
465
println ! ( "running {}" , test_file_name) ;
466
466
let nodejs = build. config . nodejs . as_ref ( ) . expect ( "nodejs not configured" ) ;
467
467
let mut cmd = Command :: new ( nodejs) ;
468
- cmd. arg ( & test_file_name)
469
- . stderr ( :: std:: process:: Stdio :: inherit ( ) ) ;
468
+ cmd. arg ( & test_file_name) ;
470
469
if build. config . quiet_tests {
471
470
cmd. arg ( "--quiet" ) ;
472
471
}
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ pub fn run(cmd: &mut Command) {
21
21
pub fn run_silent ( cmd : & mut Command ) {
22
22
let status = match cmd. status ( ) {
23
23
Ok ( status) => status,
24
- Err ( e) => fail ( & format ! ( "failed to execute command: {}" , e) ) ,
24
+ Err ( e) => fail ( & format ! ( "failed to execute command: {:?}\n error: {}" ,
25
+ cmd, e) ) ,
25
26
} ;
26
27
if !status. success ( ) {
27
28
fail ( & format ! ( "command did not execute successfully: {:?}\n \
@@ -63,7 +64,8 @@ pub fn cc2ar(cc: &Path, target: &str) -> Option<PathBuf> {
63
64
pub fn output ( cmd : & mut Command ) -> String {
64
65
let output = match cmd. stderr ( Stdio :: inherit ( ) ) . output ( ) {
65
66
Ok ( status) => status,
66
- Err ( e) => fail ( & format ! ( "failed to execute command: {}" , e) ) ,
67
+ Err ( e) => fail ( & format ! ( "failed to execute command: {:?}\n error: {}" ,
68
+ cmd, e) ) ,
67
69
} ;
68
70
if !output. status . success ( ) {
69
71
panic ! ( "command did not execute successfully: {:?}\n \
You can’t perform that action at this time.
0 commit comments