diff options
| author | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2017-07-02 13:49:30 +0300 |
|---|---|---|
| committer | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2017-07-02 13:49:30 +0300 |
| commit | 77f40223033bf0c744eb8b4edb07672c13a21557 (patch) | |
| tree | c7d442ddf6db4111770a114c00c4b23ccdcee0d3 /src/librustc_errors | |
| parent | a5d34e1d035e5441fb5b3d56d5205d038538f053 (diff) | |
| download | rust-77f40223033bf0c744eb8b4edb07672c13a21557.tar.gz rust-77f40223033bf0c744eb8b4edb07672c13a21557.zip | |
Revert "Change error count messages"
This reverts commit 5558c64f33446225739c1153b43d2e309bb4f50e.
Diffstat (limited to 'src/librustc_errors')
| -rw-r--r-- | src/librustc_errors/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs index ada1c632bc0..dd25f969414 100644 --- a/src/librustc_errors/lib.rs +++ b/src/librustc_errors/lib.rs @@ -506,7 +506,10 @@ impl Handler { return; } - _ => s = "aborting due to previous error(s)".to_string(), + 1 => s = "aborting due to previous error".to_string(), + _ => { + s = format!("aborting due to {} previous errors", self.err_count.get()); + } } panic!(self.fatal(&s)); |
