소스 검색

ENH: add more information to message

Bill Hoffman 18 년 전
부모
커밋
001d7fa348
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 6 4
      Source/cmFileCommand.cxx

+ 6 - 4
Source/cmFileCommand.cxx

@@ -1252,7 +1252,6 @@ bool cmFileCommand::HandleInstallDestination(cmFileInstaller& installer,
     {
     std::string sdestdir = destdir;
     cmSystemTools::ConvertToUnixSlashes(sdestdir);
-
     char ch1 = destination[0];
     char ch2 = destination[1];
     char ch3 = 0;
@@ -1294,9 +1293,12 @@ bool cmFileCommand::HandleInstallDestination(cmFileInstaller& installer,
       if ( ch2 == '/' )
         {
         // looks like a network path.
-        this->SetError("called with network path DESTINATION. This "
-            "does not make sense when using DESTDIR. Specify local "
-            "absolute path or remove DESTDIR environment variable.");
+        std::string message = "called with network path DESTINATION. This "
+          "does not make sense when using DESTDIR. Specify local "
+          "absolute path or remove DESTDIR environment variable."
+          "\nDESTINATION=\n";
+        message += destination;
+        this->SetError(message.c_str());
         return false;
         }
       }