File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 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,
465465 println ! ( "running {}" , test_file_name) ;
466466 let nodejs = build. config . nodejs . as_ref ( ) . expect ( "nodejs not configured" ) ;
467467 let mut cmd = Command :: new ( nodejs) ;
468- cmd. arg ( & test_file_name)
469- . stderr ( :: std:: process:: Stdio :: inherit ( ) ) ;
468+ cmd. arg ( & test_file_name) ;
470469 if build. config . quiet_tests {
471470 cmd. arg ( "--quiet" ) ;
472471 }
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ pub fn run(cmd: &mut Command) {
2121pub fn run_silent ( cmd : & mut Command ) {
2222 let status = match cmd. status ( ) {
2323 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) ) ,
2526 } ;
2627 if !status. success ( ) {
2728 fail ( & format ! ( "command did not execute successfully: {:?}\n \
@@ -63,7 +64,8 @@ pub fn cc2ar(cc: &Path, target: &str) -> Option<PathBuf> {
6364pub fn output ( cmd : & mut Command ) -> String {
6465 let output = match cmd. stderr ( Stdio :: inherit ( ) ) . output ( ) {
6566 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) ) ,
6769 } ;
6870 if !output. status . success ( ) {
6971 panic ! ( "command did not execute successfully: {:?}\n \
You can’t perform that action at this time.
0 commit comments