1
Fork 0

Fix unknown option message for -Z

Before, unknown -Z option would result in a "error: unknown codegen option"
message instead of "error: unknown debugging option".
This commit is contained in:
Loïc Damien 2015-01-29 16:25:20 +01:00
parent 3d6f5100af
commit d8e12365cd

View file

@ -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;