File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -1008,16 +1008,19 @@ impl Build {
1008
1008
} ;
1009
1009
let result = if !output. status . success ( ) {
1010
1010
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
+ } ) ;
1021
1024
}
1022
1025
Err ( ( ) )
1023
1026
} else {
You can’t perform that action at this time.
0 commit comments