Skip to content

Commit 74de739

Browse files
philippemnoelisaacvando
authored andcommitted
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

File tree

lib/parade_db/tokenizer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def render_positional_arg(value)
9090
when String
9191
quote_term(value)
9292
else
93-
raise InvalidArgumentError, "Unsupported tokenizer arg type: #{value.class}"
93+
raise ArgumentError, "Unsupported tokenizer arg type: #{value.class}"
9494
end
9595
end
9696
end

0 commit comments

Comments
 (0)