diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index 125fbaa40e05..ab182dd22563 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -333,8 +333,8 @@ macro_rules! options { break; } if !found { - early_error(&format!("unknown codegen option: `{}`", - key)[]); + early_error(&format!("unknown {} option: `{}`", + $outputname, key)[]); } } return op;