diff --git a/lib/liquid/lexer.rb b/lib/liquid/lexer.rb index 89e08499..19234283 100644 --- a/lib/liquid/lexer.rb +++ b/lib/liquid/lexer.rb @@ -39,7 +39,7 @@ module Liquid if s = SPECIALS[c] [s,c] else - raise SyntaxError, "Unexpected character #{c}." + raise SyntaxError, "Unexpected character #{c}" end end diff --git a/lib/liquid/parser.rb b/lib/liquid/parser.rb index 749c1a75..0c499d1c 100644 --- a/lib/liquid/parser.rb +++ b/lib/liquid/parser.rb @@ -59,7 +59,7 @@ module Liquid consume(:close_round) "(#{first}..#{last})" else - raise SyntaxError, "#{token} is not a valid expression." + raise SyntaxError, "#{token} is not a valid expression" end end