Reformatted the error printed by cmMakefile.

This commit is contained in:
Berk Geveci 2002-05-01 10:12:48 -04:00
parent a7664e8e01
commit d0d25bb989
2 changed files with 8 additions and 5 deletions

View File

@ -224,10 +224,13 @@ void cmMakefile::ExecuteCommand(std::string &name,
} }
if(!usedCommand->InitialPass(expandedArguments)) if(!usedCommand->InitialPass(expandedArguments))
{ {
cmSystemTools::Error(usedCommand->GetName(), std::string error;
": Error : \n", error = usedCommand->GetName();
usedCommand->GetError(), error += ": Error : \n";
m_cmCurrentDirectory.c_str()); error += usedCommand->GetError();
error += " from CMakeLists.txt file in directory: ";
error += m_cmCurrentDirectory;
cmSystemTools::Error(error.c_str());
} }
else else
{ {