File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1008,16 +1008,19 @@ impl Build {
10081008 } ;
10091009 let result = if !output. status . success ( ) {
10101010 if print_error {
1011- println ! (
1012- "\n \n command did not execute successfully: {:?}\n \
1013- expected success, got: {}\n \n \
1014- stdout ----\n {}\n \
1015- stderr ----\n {}\n \n ",
1016- command. command,
1017- output. status,
1018- String :: from_utf8_lossy( & output. stdout) ,
1019- String :: from_utf8_lossy( & output. stderr)
1020- ) ;
1011+ println ! ( "\n \n Command did not execute successfully. Add `-v` to see more details." ) ;
1012+ self . verbose ( || {
1013+ println ! (
1014+ "\n Command: {:?}\n \
1015+ Expected success, got: {}\n \n \
1016+ STDOUT ----\n {}\n \
1017+ STDERR ----\n {}\n \n ",
1018+ command. command,
1019+ output. status,
1020+ String :: from_utf8_lossy( & output. stdout) ,
1021+ String :: from_utf8_lossy( & output. stderr)
1022+ )
1023+ } ) ;
10211024 }
10221025 Err ( ( ) )
10231026 } else {
You can’t perform that action at this time.
0 commit comments