From e6174e93417489bb4921c0a4767ffd3e80a86871 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 20 Jul 2009 00:37:15 +0200 Subject: [PATCH] Don't let me waste 2 hours doing an import if the identity map file wasn't found... --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); -- 2.11.4.GIT