about summary refs log tree commit diff
path: root/src/librustc_errors
diff options
context:
space:
mode:
authorMichael Kohl <citizen428@gmail.com>2017-05-22 18:46:05 +0700
committerMichael Kohl <citizen428@gmail.com>2017-05-24 16:14:38 +0700
commit5558c64f33446225739c1153b43d2e309bb4f50e (patch)
tree8eeddda483415911b1851ecd162f3a6dcd78b275 /src/librustc_errors
parent81734e0e06d24cf580dd5352c64d10110e4d3b7b (diff)
downloadrust-5558c64f33446225739c1153b43d2e309bb4f50e.tar.gz
rust-5558c64f33446225739c1153b43d2e309bb4f50e.zip
Change error count messages
See #33525 for details.
Diffstat (limited to 'src/librustc_errors')
-rw-r--r--src/librustc_errors/lib.rs5
1 files changed, 1 insertions, 4 deletions
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));