From 72809636ec8efd84c7122bc1c68bf9db4df226f4 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Thu, 19 Sep 2019 01:28:33 +0200 Subject: Fix error messages --- diceparser.cpp | 12 ++++++------ node/scalaroperatornode.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/diceparser.cpp b/diceparser.cpp index 9eb3a4d..4f5108c 100644 --- a/diceparser.cpp +++ b/diceparser.cpp @@ -1120,18 +1120,18 @@ bool DiceParser::readOption(QString& str, ExecutionNode* previous) //, { m_errorMap.insert( Dice::ERROR_CODE::ENDLESS_LOOP_ERROR, - QObject::tr( - "Validator is always true missing after the %1 operator. Please, change it") + QObject::tr("Validator is always true for the %1 operator. Please, change it") .arg(symbol)); } break; case Dice::CONDITION_STATE::UNREACHABLE: if(operatorName == RerollUntil) { - m_errorMap.insert(Dice::ERROR_CODE::ENDLESS_LOOP_ERROR, - QObject::tr("Candition can be reached, causing endless loop. Please, " - "change the %1 option condition") - .arg(symbol)); + m_errorMap.insert( + Dice::ERROR_CODE::ENDLESS_LOOP_ERROR, + QObject::tr("Condition can't be reached, causing endless loop. Please, " + "change the %1 option condition") + .arg(symbol)); } break; case Dice::CONDITION_STATE::ERROR_STATE: diff --git a/node/scalaroperatornode.cpp b/node/scalaroperatornode.cpp index 821150b..60b65fc 100644 --- a/node/scalaroperatornode.cpp +++ b/node/scalaroperatornode.cpp @@ -69,7 +69,7 @@ void ScalarOperatorNode::run(ExecutionNode* previous) if(internalResult == nullptr) { m_errors.insert(Dice::ERROR_CODE::NO_VALID_RESULT, - QObject::tr("No Valid result in arithmetic operatoion: %1").arg(toString(true))); + QObject::tr("No Valid result in arithmetic operation: %1").arg(toString(true))); return; } -- cgit v1.2.3-70-g09d2