aboutsummaryrefslogtreecommitdiffstats
path: root/src/svn.cpp
diff options
context:
space:
mode:
authorTorgny Nyblom <kde@nyblom.org>2010-08-09 13:32:14 +0200
committerTorgny Nyblom <kde@nyblom.org>2010-08-09 13:32:14 +0200
commit2b7ce4a0bcca10bcc6cdfb2cb35685ccaa10afe3 (patch)
tree41083aaf0d4d1d2641785237a4e871f2ef02809f /src/svn.cpp
parent2eae8f66a7afb926ed0de7d489748a776f03e9a0 (diff)
downloadsvn2git-2b7ce4a0bcca10bcc6cdfb2cb35685ccaa10afe3.tar
svn2git-2b7ce4a0bcca10bcc6cdfb2cb35685ccaa10afe3.tar.gz
svn2git-2b7ce4a0bcca10bcc6cdfb2cb35685ccaa10afe3.tar.bz2
svn2git-2b7ce4a0bcca10bcc6cdfb2cb35685ccaa10afe3.tar.xz
svn2git-2b7ce4a0bcca10bcc6cdfb2cb35685ccaa10afe3.zip
Exit if unable to open repository
Diffstat (limited to 'src/svn.cpp')
-rw-r--r--src/svn.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/svn.cpp b/src/svn.cpp
index bb00214..22ee151 100644
--- a/src/svn.cpp
+++ b/src/svn.cpp
@@ -141,7 +141,10 @@ bool Svn::exportRevision(int revnum)
SvnPrivate::SvnPrivate(const QString &pathToRepository)
: global_pool(NULL)
{
- openRepository(pathToRepository);
+ if( openRepository(pathToRepository) != EXIT_SUCCESS) {
+ qCritical() << "Failed to open repository";
+ exit(1);
+ }
// get the youngest revision
svn_fs_youngest_rev(&youngest_rev, fs, global_pool);