]> andersk Git - svn-all-fast-export.git/blobdiff - src/ruleparser.cpp
add some more information to the output
[svn-all-fast-export.git] / src / ruleparser.cpp
index 3297d77f9820e80d97bd9f660b2864e253376b66..2371f30e29686624ff7c0a56dd591aef020ae2b8 100644 (file)
@@ -60,7 +60,9 @@ void Rules::load()
     enum { ReadingNone, ReadingRepository, ReadingMatch } state = ReadingNone;
     Repository repo;
     Match match;
+    int lineNumber = 0;
     while (!s.atEnd()) {
+        ++lineNumber;
         QString origLine = s.readLine();
         QString line = origLine;
 
@@ -121,7 +123,8 @@ void Rules::load()
             match = Match();
             match.rx = QRegExp(matchLine.cap(1), Qt::CaseSensitive, QRegExp::RegExp2);
         } else {
-            qFatal("Malformed line in rules file: %s", qPrintable(origLine));
+            qFatal("Malformed line in rules file: line %d: %s",
+                   lineNumber, qPrintable(origLine));
         }
     }
 }
This page took 0.692057 seconds and 4 git commands to generate.