Skip to content

Commit

Permalink
Fix a condition in dsl.ErrorName
Browse files Browse the repository at this point in the history
  • Loading branch information
tchssk committed Jul 10, 2024
1 parent 1213c35 commit 6daa218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dsl/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func ErrorName(args ...any) {
case string:
Attribute(actual, args[1:]...)
case int:
if len(args) == 1 {
if len(args) == 2 {
eval.TooFewArgError()
return
}
Expand Down

0 comments on commit 6daa218

Please sign in to comment.