From a9b9930b02bcf8fae908ea5a1d2d1a18bc362cac Mon Sep 17 00:00:00 2001 From: Marc Guenther Date: Fri, 16 Apr 2010 17:34:15 +0200 Subject: error message and exit when rules file cannot be read --- src/ruleparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ruleparser.cpp') 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); -- cgit v1.2.1