summaryrefslogtreecommitdiffstats
path: root/Source/cmCommand.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-01-07 12:48:44 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-02-13 19:49:20 (GMT)
commit615e2a17e499b2bd53cce8da1a0cfae36d67b24a (patch)
tree21da54258830573ce29254cc8e1f7955cef61d1f /Source/cmCommand.cxx
parent45b49099d9dd034fd1e7344b3bae88b0e3d3427a (diff)
downloadCMake-615e2a17e499b2bd53cce8da1a0cfae36d67b24a.zip
CMake-615e2a17e499b2bd53cce8da1a0cfae36d67b24a.tar.gz
CMake-615e2a17e499b2bd53cce8da1a0cfae36d67b24a.tar.bz2
cmCommand: Don't prefix error message with command name
Instead, prefix the error message at the two places where the errors are handled: cmMakefile and cmCTestHandlerCommand.
Diffstat (limited to 'Source/cmCommand.cxx')
-rw-r--r--Source/cmCommand.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmCommand.cxx b/Source/cmCommand.cxx
index 181b412..15bed27 100644
--- a/Source/cmCommand.cxx
+++ b/Source/cmCommand.cxx
@@ -23,17 +23,14 @@ bool cmCommand::InvokeInitialPass(const std::vector<cmListFileArgument>& args,
const char* cmCommand::GetError()
{
if (this->Error.empty()) {
- this->Error = this->GetName();
- this->Error += " unknown error.";
+ return "unknown error.";
}
return this->Error.c_str();
}
void cmCommand::SetError(const std::string& e)
{
- this->Error = this->GetName();
- this->Error += " ";
- this->Error += e;
+ this->Error = e;
}
bool cmCommand::Disallowed(cmPolicies::PolicyID pol, const char* e)