From 2b7ce4a0bcca10bcc6cdfb2cb35685ccaa10afe3 Mon Sep 17 00:00:00 2001 From: Torgny Nyblom Date: Mon, 9 Aug 2010 13:32:14 +0200 Subject: Exit if unable to open repository --- src/svn.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/svn.cpp') 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); -- cgit v1.2.1