diff options
author | Marc Guenther <marcguenther@me.com> | 2010-04-16 17:34:15 +0200 |
---|---|---|
committer | mgu <mgu@sshgate.ias.local> | 2010-04-16 17:37:05 +0200 |
commit | a9b9930b02bcf8fae908ea5a1d2d1a18bc362cac (patch) | |
tree | ad99f4b20bdd7bca1b4f80bd1123999647536fb7 | |
parent | ad10c53d123ebf1c7a1d93431ade2a1cde4715ce (diff) | |
download | svn2git-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
-rw-r--r-- | src/ruleparser.cpp | 2 |
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); |