aboutsummaryrefslogtreecommitdiffstats
path: root/src/ruleparser.cpp
diff options
context:
space:
mode:
authorMarc Guenther <marcguenther@me.com>2010-04-16 17:34:15 +0200
committermgu <mgu@sshgate.ias.local>2010-04-16 17:37:05 +0200
commita9b9930b02bcf8fae908ea5a1d2d1a18bc362cac (patch)
treead99f4b20bdd7bca1b4f80bd1123999647536fb7 /src/ruleparser.cpp
parentad10c53d123ebf1c7a1d93431ade2a1cde4715ce (diff)
downloadsvn2git-a9b9930b02bcf8fae908ea5a1d2d1a18bc362cac.tar
svn2git-a9b9930b02bcf8fae908ea5a1d2d1a18bc362cac.tar.gz
svn2git-a9b9930b02bcf8fae908ea5a1d2d1a18bc362cac.tar.bz2
svn2git-a9b9930b02bcf8fae908ea5a1d2d1a18bc362cac.tar.xz
svn2git-a9b9930b02bcf8fae908ea5a1d2d1a18bc362cac.zip
error message and exit when rules file cannot be read
Diffstat (limited to 'src/ruleparser.cpp')
-rw-r--r--src/ruleparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ruleparser.cpp b/src/ruleparser.cpp
index 905115c..9a83203 100644
--- a/src/ruleparser.cpp
+++ b/src/ruleparser.cpp
@@ -44,7 +44,7 @@ void Rules::load()
{
QFile file(filename);
if (!file.open(QIODevice::ReadOnly))
- return;
+ qFatal("Could not read the rules file: %s", qPrintable(filename));
// initialize the regexps we will use
QRegExp repoLine("create repository\\s+(\\S+)", Qt::CaseInsensitive);