don't complain about non-EEXIST io errors twice
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>
Wed, 24 Jul 2013 17:46:53 +0000 (19:46 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 29 Jul 2013 15:46:35 +0000 (17:46 +0200)
simply use the new parser flags to report all errors directly.

Change-Id: I9156da340913cb2cdd3465d99ad81321232192e5
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
src/linguist/lrelease/main.cpp

index f3cd862..f5ed9bd 100644 (file)
@@ -322,10 +322,8 @@ int main(int argc, char **argv)
             visitor.setOutputDir(QDir::currentPath());
 
             ProFile *pro;
-            if (!(pro = parser.parsedProFile(QDir::cleanPath(fi.absoluteFilePath())))) {
-                printErr(LR::tr(
-                          "lrelease error: cannot read project file '%1'.\n")
-                          .arg(inputFile));
+            if (!(pro = parser.parsedProFile(QDir::cleanPath(fi.absoluteFilePath()),
+                                             QMakeParser::ParseReportMissing))) {
                 continue;
             }
             if (!visitor.accept(pro)) {