Procházet zdrojové kódy

Merge pull request #456 from RussWhitehead/issue455

Fix #455 Fully qualify logfile name in eclcc msg

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman před 14 roky
rodič
revize
5e271067a8
1 změnil soubory, kde provedl 7 přidání a 1 odebrání
  1. 7 1
      ecl/eclcc/eclcc.cpp

+ 7 - 1
ecl/eclcc/eclcc.cpp

@@ -497,7 +497,13 @@ ICppCompiler * EclCC::createCompiler(const char * coreName)
 void EclCC::reportCompileErrors(IErrorReceiver *errs, const char * processName)
 {
     StringBuffer failText;
-    failText.appendf("Compile/Link failed for %s (see '%s' for details)",processName,optLogfile.get() ? optLogfile.get() : "log file");
+    StringBuffer absCCLogName;
+    if (optLogfile.get())
+        createUNCFilename(optLogfile.get(), absCCLogName, false);
+    else
+        absCCLogName = "log file";
+
+    failText.appendf("Compile/Link failed for %s (see '%s' for details)",processName,absCCLogName.str());
     errs->reportError(ERR_INTERNALEXCEPTION, failText.toCharArray(), processName, 0, 0, 0);
     try
     {