@@ -15,6 +15,7 @@ use std::process::{self, Command};
15
15
use std:: str:: FromStr ;
16
16
17
17
use chrono:: { Date , DateTime , Duration , Utc } ;
18
+ use colored:: * ;
18
19
use failure:: { bail, format_err, Fail , Error } ;
19
20
use log:: debug;
20
21
use reqwest:: blocking:: Client ;
@@ -634,7 +635,13 @@ fn print_results(cfg: &Config, client: &Client, bisection_result: &BisectionResu
634
635
}
635
636
}
636
637
637
- eprintln ! ( "regression in {}" , toolchains[ * found] ) ;
638
+ let tc_found = format ! ( "Regression in {}" , toolchains[ * found] ) ;
639
+ eprintln ! ( "" ) ;
640
+ eprintln ! ( "" ) ;
641
+ eprintln ! ( "{}" , "*" . repeat( 80 ) . dimmed( ) . bold( ) ) ;
642
+ eprintln ! ( "{}" , tc_found. red( ) ) ;
643
+ eprintln ! ( "{}" , "*" . repeat( 80 ) . dimmed( ) . bold( ) ) ;
644
+ eprintln ! ( "" ) ;
638
645
}
639
646
640
647
fn print_final_report (
@@ -653,14 +660,16 @@ fn print_final_report(
653
660
..
654
661
} = ci_bisection_result;
655
662
656
- eprintln ! ( "" ) ;
657
- eprintln ! ( "" ) ;
658
-
659
- eprintln ! ( "==================================================================================" ) ;
660
- eprintln ! ( "= Please open an issue on Rust's github repository =" ) ;
661
- eprintln ! ( "= https://github.com/rust-lang/rust/issues/new =" ) ;
662
- eprintln ! ( "= Below you will find a text that would serve as a starting point of your report =" ) ;
663
- eprintln ! ( "==================================================================================" ) ;
663
+ #[ rustfmt:: skip]
664
+ eprintln ! ( "{}" , "==================================================================================" . dimmed( ) ) ;
665
+ #[ rustfmt:: skip]
666
+ eprintln ! ( "{}" , "= Please open an issue on Rust's github repository =" . dimmed( ) ) ;
667
+ #[ rustfmt:: skip]
668
+ eprintln ! ( "{}" , "= https://github.com/rust-lang/rust/issues/new =" . dimmed( ) ) ;
669
+ #[ rustfmt:: skip]
670
+ eprintln ! ( "{}" , "= Below you will find a text that would serve as a starting point of your report =" . dimmed( ) ) ;
671
+ #[ rustfmt:: skip]
672
+ eprintln ! ( "{}" , "==================================================================================" . dimmed( ) ) ;
664
673
665
674
eprintln ! ( "" ) ;
666
675
@@ -1071,6 +1080,7 @@ fn bisect_ci_in_commits(
1071
1080
}
1072
1081
1073
1082
eprintln ! ( "validated commits found, specifying toolchains" ) ;
1083
+ eprintln ! ( "" ) ;
1074
1084
1075
1085
let toolchains = commits
1076
1086
. into_iter ( )
@@ -1142,7 +1152,8 @@ fn main() {
1142
1152
match err. downcast :: < ExitError > ( ) {
1143
1153
Ok ( ExitError ( code) ) => process:: exit ( code) ,
1144
1154
Err ( err) => {
1145
- eprintln ! ( "ERROR: {}" , err) ;
1155
+ let error_str = "ERROR:" . red ( ) . bold ( ) ;
1156
+ eprintln ! ( "{} {}" , error_str, err) ;
1146
1157
process:: exit ( 1 ) ;
1147
1158
}
1148
1159
}
0 commit comments