about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorLindsey Kuper <lindsey@rockstargirl.org>2012-06-04 16:51:45 -0700
committerLindsey Kuper <lindsey@rockstargirl.org>2012-06-05 10:08:32 -0700
commit1a3b8fc43c8974c5f6238095b1bb0077a3b2c348 (patch)
tree3109183bcf06ec026bba26645485a01bae2b171c /src/libsyntax
parent99d6807ee009b0289d5a1ae46385d251e4f0da64 (diff)
downloadrust-1a3b8fc43c8974c5f6238095b1bb0077a3b2c348.tar.gz
rust-1a3b8fc43c8974c5f6238095b1bb0077a3b2c348.zip
Have "aborting due to previous errors" message show an error count
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/diagnostic.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/diagnostic.rs b/src/libsyntax/diagnostic.rs
index 64904d612ce..6d54615e827 100644
--- a/src/libsyntax/diagnostic.rs
+++ b/src/libsyntax/diagnostic.rs
@@ -87,7 +87,9 @@ impl codemap_handler of handler for handler_t {
     fn has_errors() -> bool { self.err_count > 0u }
     fn abort_if_errors() {
         if self.err_count > 0u {
-            self.fatal("aborting due to previous errors");
+            let s = #fmt["aborting due to %u previous errors",
+                         self.err_count];
+            self.fatal(s);
         }
     }
     fn warn(msg: str) {