aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'diceparser.cpp')
-rw-r--r--diceparser.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index 4a972d6..3831400 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -176,9 +176,12 @@ bool DiceParser::parseLine(QString str)
{
return true;
}
+ else if(m_errorMap.isEmpty())
+ {
+ m_errorMap.insert(ExecutionNode::NOTHING_UNDERSTOOD,QObject::tr("Nothing was understood"));
+ }
else
{
- m_errorMap.insert(ExecutionNode::NOTHING_UNDERSTOOD,QObject::tr("Nothing was understood"));
return false;
}