瀏覽代碼

ENH: Improve formatting of include command error message.

Brad King 17 年之前
父節點
當前提交
959bd61e37
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Source/cmIncludeCommand.cxx

+ 3 - 1
Source/cmIncludeCommand.cxx

@@ -95,7 +95,9 @@ bool cmIncludeCommand
 
   if(!optional && !readit && !cmSystemTools::GetFatalErrorOccured())
     {
-    std::string m = "Could not find include file: ";
+    std::string m =
+      "could not find load file:\n"
+      "  ";
     m += fname;
     this->SetError(m.c_str());
     return false;