Don't let me waste 2 hours doing an import if the identity map file wasn't found...master
authorThiago Macieira <thiago@kde.org>
Sun, 19 Jul 2009 22:37:15 +0000 (20 00:37 +0200)
committerThiago Macieira <thiago@kde.org>
Sun, 19 Jul 2009 22:37:15 +0000 (20 00:37 +0200)
src/main.cpp

index abe9c28..35535c9 100644 (file)
@@ -33,8 +33,11 @@ QHash<QByteArray, QByteArray> loadIdentityMapFile(const QString &fileName)
         return result;
 
     QFile file(fileName);
-    if (!file.open(QIODevice::ReadOnly))
+    if (!file.open(QIODevice::ReadOnly)) {
+        fprintf(stderr, "Could not open file %s: %s",
+                qPrintable(fileName), qPrintable(file.errorString()));
         return result;
+    }
 
     while (!file.atEnd()) {
         QByteArray line = file.readLine().trimmed();