Commit 74de739
fix: use built-in ArgumentError in tokenizer
- tokenizer.rb: render_positional_arg raised the undefined constant
InvalidArgumentError (no such constant is defined anywhere in the gem),
which would itself raise NameError at runtime instead of the intended
argument error. Use Ruby's built-in ArgumentError.1 parent d14ecc4 commit 74de739
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
0 commit comments