From 1deb8ac509c147da57d35183b3fa06a9ad36f76a Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 24 Dec 2007 11:55:12 -0200 Subject: [PATCH] Make it a fatal error to have a malformed line in the rules file --- src/ruleparser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ruleparser.cpp b/src/ruleparser.cpp index c59b44b..3297d77 100644 --- a/src/ruleparser.cpp +++ b/src/ruleparser.cpp @@ -121,8 +121,7 @@ void Rules::load() match = Match(); match.rx = QRegExp(matchLine.cap(1), Qt::CaseSensitive, QRegExp::RegExp2); } else { - qWarning() << "Malformed line in configure file:" << origLine; - state = ReadingNone; + qFatal("Malformed line in rules file: %s", qPrintable(origLine)); } } } -- 2.45.0