diff options
| author | 2015-04-29 07:44:25 +0200 | |
|---|---|---|
| committer | 2015-04-29 07:44:25 +0200 | |
| commit | 590fc6528b09bf1abbd90caf31053cd5ef6b439b (patch) | |
| tree | d2dcbb2c751d9edf9b736a2fa5488fbcf41247dc /diceparser.cpp | |
| parent | 942cf3f75f49d83c4e512d5350f7de69f0ec8aa7 (diff) | |
| parent | 5c73a6cb13b8c301d0e60f916998c3e683a2b043 (diff) | |
| download | OneRoll-590fc6528b09bf1abbd90caf31053cd5ef6b439b.tar.gz OneRoll-590fc6528b09bf1abbd90caf31053cd5ef6b439b.zip | |
Merge branch 'master' of github.com:obiwankennedy/DiceParser
Diffstat (limited to 'diceparser.cpp')
| -rw-r--r-- | diceparser.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/diceparser.cpp b/diceparser.cpp index a946b86..ebe2e0e 100644 --- a/diceparser.cpp +++ b/diceparser.cpp @@ -179,7 +179,7 @@ bool DiceParser::parseLine(QString str) } else { - return false; + return false; } } @@ -862,9 +862,9 @@ bool DiceParser::readOption(QString& str,ExecutionNode* previous, bool hasDice)/ return isFine; } -QList<ExecutionNode::ERROR_CODE> DiceParser::getErrorList() +QMap<ExecutionNode::ERROR_CODE,QString> DiceParser::getErrorMap() { - return m_start->getErrorList(); + return m_start->getExecutionErrorMap(); } QString DiceParser::humanReadableError() { @@ -876,6 +876,15 @@ QString DiceParser::humanReadableError() str.append(i.value()); str.append("\n"); } + + ///list + QMapIterator<ExecutionNode::ERROR_CODE,QString> j(getErrorMap()); + while(j.hasNext()) + { + j.next(); + str.append(j.value()); + str.append("\n"); + } return str; } |