소스 검색

ENH: Add context information when a source file cannot be found.

Brad King 17 년 전
부모
커밋
19aafdb355
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Source/cmSourceFile.cxx

+ 2 - 2
Source/cmSourceFile.cxx

@@ -179,7 +179,7 @@ bool cmSourceFile::FindFullPath()
 
   cmOStringStream e;
   e << "Cannot find source file \"" << this->Location.GetName() << "\"";
-  e << "\n\nTried extensions";
+  e << ".  Tried extensions";
   for(std::vector<std::string>::const_iterator ext = srcExts.begin();
       ext != srcExts.end(); ++ext)
     {
@@ -190,7 +190,7 @@ bool cmSourceFile::FindFullPath()
     {
     e << " ." << *ext;
     }
-  cmSystemTools::Error(e.str().c_str());
+  this->Location.GetMakefile()->IssueMessage(cmake::FATAL_ERROR, e.str());
   this->FindFullPathFailed = true;
   return false;
 }