summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-10-15 22:36:46 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-10-15 22:36:46 (GMT)
commit7d907c8d598d582694545f120c4da11df9538174 (patch)
treeb8f7953f233e7ec16ae079bdfe5de47074922ad0 /Source/cmSourceFile.cxx
parent3a316a6e0a8611b1f5998b3a654eebf1dd1cb4e5 (diff)
downloadCMake-7d907c8d598d582694545f120c4da11df9538174.zip
CMake-7d907c8d598d582694545f120c4da11df9538174.tar.gz
CMake-7d907c8d598d582694545f120c4da11df9538174.tar.bz2
ENH: clean up error report for source files not found
Diffstat (limited to 'Source/cmSourceFile.cxx')
-rw-r--r--Source/cmSourceFile.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmSourceFile.cxx b/Source/cmSourceFile.cxx
index 152dc6e..cc78d12 100644
--- a/Source/cmSourceFile.cxx
+++ b/Source/cmSourceFile.cxx
@@ -127,7 +127,7 @@ void cmSourceFile::SetName(const char* name, const char* dir,
}
}
- std::string errorMsg = "Tried";
+ std::string errorMsg = "\n\nTried";
for( std::vector<std::string>::const_iterator ext = sourceExts.begin();
ext != sourceExts.end(); ++ext )
{
@@ -140,10 +140,8 @@ void cmSourceFile::SetName(const char* name, const char* dir,
errorMsg += " .";
errorMsg += *ext;
}
- errorMsg += " for ";
-
- cmSystemTools::Error("can not find file ", pathname.c_str());
- cmSystemTools::Error(errorMsg.c_str(), pathname.c_str());
+ cmSystemTools::Error("can not find file ", pathname.c_str(),
+ errorMsg.c_str());
}