Skip to content

Commit

Permalink
�error handling for empty expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
oganm committed Apr 5, 2022
1 parent 91f905b commit f90b803
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/dice_syntax/dice_syntax.gd
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static func dice_parser(dice:String)->Dictionary:
test_out.append(1.0)

expression.execute(test_out)
if expression.has_execute_failed():
if expression.has_execute_failed() or expression.get_error_text()!='':
error = true
msg.append('Expression fails to execute')

Expand Down
2 changes: 1 addition & 1 deletion addons/dice_syntax/plugin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
name="dice_syntax"
description="Dice rolling syntax"
author="Ogan Mancarci"
version="2.1"
version="2.1.1"
script="plugin.gd"

0 comments on commit f90b803

Please sign in to comment.