Keep input out of error message and add test for slice Integer parsing.

This commit is contained in:
Dylan Thacker-Smith
2015-06-03 01:35:01 -04:00
parent ab7109a335
commit c84f4520cc
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -323,7 +323,7 @@ module Liquid
begin
Integer(num)
rescue ::ArgumentError
raise Liquid::ArgumentError, "invalid integer '#{num}'"
raise Liquid::ArgumentError, "invalid integer"
end
end