Fix error message 1.8 compatibility

This commit is contained in:
Tristan Hume
2013-08-22 13:23:44 -04:00
parent 5bdfb62bf2
commit 86ba2f4174
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ module Liquid
def consume(type = nil)
token = @tokens[@p]
if type && token[0] != type
raise SyntaxError, "Expected #{type} but found #{@tokens[@p]}"
raise SyntaxError, "Expected #{type} but found #{@tokens[@p].first}"
end
@p += 1
token[1]