mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
export: Improve error message consistency
Remove literal text "subcommand" from error messages. Most other commands report errors like "<command> <subcommand> <message>", where the message does not include the literal text "subcommand". The `export` command was one of two exceptions to this.
This commit is contained in:
@@ -270,8 +270,8 @@ static bool HandleExportMode(std::vector<std::string> const& args,
|
||||
}
|
||||
|
||||
if (!unknownArgs.empty()) {
|
||||
status.SetError("EXPORT subcommand given unknown argument: \"" +
|
||||
unknownArgs.front() + "\".");
|
||||
status.SetError("EXPORT given unknown argument: \"" + unknownArgs.front() +
|
||||
"\".");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -384,8 +384,8 @@ static bool HandleSetupMode(std::vector<std::string> const& args,
|
||||
SetupArguments arguments = parser.Parse(args, &unknownArgs);
|
||||
|
||||
if (!unknownArgs.empty()) {
|
||||
status.SetError("SETUP subcommand given unknown argument: \"" +
|
||||
unknownArgs.front() + "\".");
|
||||
status.SetError("SETUP given unknown argument: \"" + unknownArgs.front() +
|
||||
"\".");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user