浏览代码

Merge pull request #208 from ghalliday/issue174a

Issue:174 Report missing  attribute on no line, not line 1

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 14 年之前
父节点
当前提交
8e426df5b4
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      ecl/eclcc/eclcc.cpp

+ 2 - 1
ecl/eclcc/eclcc.cpp

@@ -829,6 +829,7 @@ void EclCC::processSingleQuery(EclCompileInstance & instance, IEclRepository * d
         withinRepository = checkWithinRepository(attributePath, sourcePathname);
 
         //Disable this for the moment when running the regression suite.
+        //It also doesn't work in batch mode for files in nested directories since filename is reduced to basename
         if (!optBatchMode && !withinRepository)
         {
             StringBuffer expandedSourceName;
@@ -899,7 +900,7 @@ void EclCC::processSingleQuery(EclCompileInstance & instance, IEclRepository * d
             {
                 StringBuffer msg;
                 msg.append("Could not resolve attribute ").append(attributePath.str());
-                errs->reportError(3, msg.str(), sourcePathname ? sourcePathname : attributePath.str(), 1, 0, 0);
+                errs->reportError(3, msg.str(), sourcePathname ? sourcePathname : attributePath.str(), 0, 0, 0);
             }
         }
         else