diff options
author | Torgny Nyblom <kde@nyblom.org> | 2010-08-09 13:32:14 +0200 |
---|---|---|
committer | Torgny Nyblom <kde@nyblom.org> | 2010-08-09 13:32:14 +0200 |
commit | 2b7ce4a0bcca10bcc6cdfb2cb35685ccaa10afe3 (patch) | |
tree | 41083aaf0d4d1d2641785237a4e871f2ef02809f | |
parent | 2eae8f66a7afb926ed0de7d489748a776f03e9a0 (diff) | |
download | svn2git-2b7ce4a0bcca10bcc6cdfb2cb35685ccaa10afe3.tar svn2git-2b7ce4a0bcca10bcc6cdfb2cb35685ccaa10afe3.tar.gz svn2git-2b7ce4a0bcca10bcc6cdfb2cb35685ccaa10afe3.tar.bz2 svn2git-2b7ce4a0bcca10bcc6cdfb2cb35685ccaa10afe3.tar.xz svn2git-2b7ce4a0bcca10bcc6cdfb2cb35685ccaa10afe3.zip |
Exit if unable to open repository
-rw-r--r-- | src/svn.cpp | 5 |
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); |