mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-17 01:40:42 -07:00
Keep input out of error message and add test for slice Integer parsing.
This commit is contained in:
@@ -323,7 +323,7 @@ module Liquid
|
||||
begin
|
||||
Integer(num)
|
||||
rescue ::ArgumentError
|
||||
raise Liquid::ArgumentError, "invalid integer '#{num}'"
|
||||
raise Liquid::ArgumentError, "invalid integer"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user