aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp5
1 files changed, 4 insertions, 1 deletions
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<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();