From 5558c64f33446225739c1153b43d2e309bb4f50e Mon Sep 17 00:00:00 2001 From: Michael Kohl Date: Mon, 22 May 2017 18:46:05 +0700 Subject: Change error count messages See #33525 for details. --- src/librustc_errors/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/librustc_errors') diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs index c91dc9d8797..f7191e49216 100644 --- a/src/librustc_errors/lib.rs +++ b/src/librustc_errors/lib.rs @@ -501,10 +501,7 @@ impl Handler { return; } - 1 => s = "aborting due to previous error".to_string(), - _ => { - s = format!("aborting due to {} previous errors", self.err_count.get()); - } + _ => s = "aborting due to previous error(s)".to_string(), } panic!(self.fatal(&s)); -- cgit 1.4.1-3-g733a5