diff options
| author | 2015-04-29 07:44:25 +0200 | |
|---|---|---|
| committer | 2015-04-29 07:44:25 +0200 | |
| commit | 590fc6528b09bf1abbd90caf31053cd5ef6b439b (patch) | |
| tree | d2dcbb2c751d9edf9b736a2fa5488fbcf41247dc /cli | |
| 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 'cli')
| -rw-r--r-- | cli/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/main.cpp b/cli/main.cpp index 0812059..94fcc00 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -91,6 +91,12 @@ void startDiceParsing(QString& cmd,QString& treeFile,bool highlight) if(treeFile.isEmpty()) { parser->Start(); + if(!parser->getErrorMap().isEmpty()) + { + qDebug() << "Error" << parser->humanReadableError(); + return; + } + ExportedDiceResult list; parser->getLastDiceResult(list); QString diceText = diceToText(list); |