From 324d26d4051b636913b70e7d048fd746ca958046 Mon Sep 17 00:00:00 2001 From: Tristan Hume Date: Mon, 19 Aug 2013 15:20:39 -0400 Subject: [PATCH] Consistent lack of periods in syntax errors. --- lib/liquid/lexer.rb | 2 +- lib/liquid/parser.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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