diff options
| author | 2019-09-19 01:28:33 +0200 | |
|---|---|---|
| committer | 2019-09-19 01:28:33 +0200 | |
| commit | 72809636ec8efd84c7122bc1c68bf9db4df226f4 (patch) | |
| tree | 1095d9b22c13bbf2c157c0edfed14bc246c41b75 | |
| parent | 5697690e3a260d3f00603492305f410c3f307754 (diff) | |
| download | OneRoll-72809636ec8efd84c7122bc1c68bf9db4df226f4.tar.gz OneRoll-72809636ec8efd84c7122bc1c68bf9db4df226f4.zip | |
Fix error messages
| -rw-r--r-- | diceparser.cpp | 12 | ||||
| -rw-r--r-- | 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; } |