From cfa71a135b2dfd5c5294737e392bb3b22929d940 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Wed, 22 Aug 2012 18:32:51 -0700 Subject: [PATCH] rustc: add all the pretty printer modes to error message --- src/rustc/driver/driver.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rustc/driver/driver.rs b/src/rustc/driver/driver.rs index 65875af6b7f8..be113d4e9922 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`"); } } }