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 1f39ea7 commit 07e0a36
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 07e0a36

Please sign in to comment.