summaryrefslogtreecommitdiffstats
path: root/Source/cmCommand.cxx
diff options
context:
space:
mode:
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)