diff --git a/src/librustc/driver/config.rs b/src/librustc/driver/config.rs index 8f4f54ce9673..6547d1ed3eb4 100644 --- a/src/librustc/driver/config.rs +++ b/src/librustc/driver/config.rs @@ -716,8 +716,8 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options { None | Some("2") => FullDebugInfo, Some(arg) => { - early_error(format!("optimization level needs to be between \ - 0-3 (instead was `{}`)", + early_error(format!("debug info level needs to be between \ + 0-2 (instead was `{}`)", arg).as_slice()); } }