File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -1009,15 +1009,23 @@ impl Build {
10091009 let result = if !output. status . success ( ) {
10101010 if print_error {
10111011 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: {}",
10171014 output. status,
1018- String :: from_utf8_lossy( & output. stdout) ,
1019- String :: from_utf8_lossy( & output. stderr)
10201015 ) ;
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+ } ) ;
10211029 }
10221030 Err ( ( ) )
10231031 } else {
You can’t perform that action at this time.
0 commit comments