aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago@kde.org>2009-07-20 00:37:15 +0200
committerThiago Macieira <thiago@kde.org>2009-07-20 00:37:15 +0200
commite6174e93417489bb4921c0a4767ffd3e80a86871 (patch)
tree329c8e735e9046c1e0c92d2aca0cc9641214387a /src/main.cpp
parenta5fd311b84821f8cfa9ce89725501385070e744d (diff)
downloadsvn2git-e6174e93417489bb4921c0a4767ffd3e80a86871.tar
svn2git-e6174e93417489bb4921c0a4767ffd3e80a86871.tar.gz
svn2git-e6174e93417489bb4921c0a4767ffd3e80a86871.tar.bz2
svn2git-e6174e93417489bb4921c0a4767ffd3e80a86871.tar.xz
svn2git-e6174e93417489bb4921c0a4767ffd3e80a86871.zip
Don't let me waste 2 hours doing an import if the identity map file wasn't found...
Diffstat (limited to 'src/main.cpp')
-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();