From: Thiago Macieira Date: Sun, 19 Jul 2009 22:37:15 +0000 (+0200) Subject: Don't let me waste 2 hours doing an import if the identity map file wasn't found... X-Git-Url: http://andersk.mit.edu/gitweb/svn-all-fast-export.git/commitdiff_plain/e6174e93417489bb4921c0a4767ffd3e80a86871 Don't let me waste 2 hours doing an import if the identity map file wasn't found... --- diff --git a/src/main.cpp b/src/main.cpp index abe9c28..35535c9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -33,8 +33,11 @@ QHash 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();