about summary refs log tree commit diff
path: root/src/rustc
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2012-08-22 18:32:51 -0700
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2012-08-22 19:10:28 -0700
commitcfa71a135b2dfd5c5294737e392bb3b22929d940 (patch)
tree6ba6b4cd7ad5f0c0e150c8b77ca793fb9cd4988e /src/rustc
parent4ef1d9d5b538ffb896cb37485b24dd029a6832de (diff)
downloadrust-cfa71a135b2dfd5c5294737e392bb3b22929d940.tar.gz
rust-cfa71a135b2dfd5c5294737e392bb3b22929d940.zip
rustc: add all the pretty printer modes to error message
Diffstat (limited to 'src/rustc')
-rw-r--r--src/rustc/driver/driver.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rustc/driver/driver.rs b/src/rustc/driver/driver.rs
index 65875af6b7f..be113d4e992 100644
--- a/src/rustc/driver/driver.rs
+++ b/src/rustc/driver/driver.rs
@@ -583,8 +583,9 @@ fn parse_pretty(sess: session, &&name: ~str) -> pp_mode {
       ~"expanded,identified" => ppm_expanded_identified,
       ~"identified" => ppm_identified,
       _ => {
-        sess.fatal(~"argument to `pretty` must be one of `normal`, `typed`, \
-                     or `identified`");
+        sess.fatal(~"argument to `pretty` must be one of `normal`, \
+                     `expanded`, `typed`, `identified`, \
+                     or `expanded,identified`");
       }
     }
 }