File tree 1 file changed +15
-7
lines changed
1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -1009,15 +1009,23 @@ impl Build {
1009
1009
let result = if !output. status . success ( ) {
1010
1010
if print_error {
1011
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,
1012
+ "\n \n Command did not execute successfully.\
1013
+ \n Expected success, got: {}",
1017
1014
output. status,
1018
- String :: from_utf8_lossy( & output. stdout) ,
1019
- String :: from_utf8_lossy( & output. stderr)
1020
1015
) ;
1016
+
1017
+ if !self . is_verbose ( ) {
1018
+ println ! ( "Add `-v` to see more details.\n " ) ;
1019
+ }
1020
+
1021
+ self . verbose ( || {
1022
+ println ! (
1023
+ "\n STDOUT ----\n {}\n \
1024
+ STDERR ----\n {}\n ",
1025
+ String :: from_utf8_lossy( & output. stdout) ,
1026
+ String :: from_utf8_lossy( & output. stderr)
1027
+ )
1028
+ } ) ;
1021
1029
}
1022
1030
Err ( ( ) )
1023
1031
} else {
You can’t perform that action at this time.
0 commit comments