diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-01-07 12:48:44 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-02-13 19:49:20 (GMT) |
commit | 615e2a17e499b2bd53cce8da1a0cfae36d67b24a (patch) | |
tree | 21da54258830573ce29254cc8e1f7955cef61d1f /Source/cmMakefile.cxx | |
parent | 45b49099d9dd034fd1e7344b3bae88b0e3d3427a (diff) | |
download | CMake-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/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 618f694..bdaca97 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -281,7 +281,8 @@ bool cmMakefile::ExecuteCommand(const cmListFileFunction& lff, if (!invokeSucceeded || hadNestedError) { if (!hadNestedError) { // The command invocation requested that we report an error. - this->IssueMessage(cmake::FATAL_ERROR, pcmd->GetError()); + std::string const error = name + " " + pcmd->GetError(); + this->IssueMessage(cmake::FATAL_ERROR, error); } result = false; if (this->GetCMakeInstance()->GetWorkingMode() != cmake::NORMAL_MODE) { |