Kouhei Sutou
null+****@clear*****
Tue Nov 27 23:04:36 JST 2012
Kouhei Sutou 2012-11-27 23:04:36 +0900 (Tue, 27 Nov 2012) New Revision: 4661c640df8aa5cc51be3eaac7a4ed0ae10330dc https://github.com/groonga/groonga-command/commit/4661c640df8aa5cc51be3eaac7a4ed0ae10330dc Log: Follow ParseError API change Modified files: lib/groonga/command/parser.rb Modified: lib/groonga/command/parser.rb (+4 -2) =================================================================== --- lib/groonga/command/parser.rb 2012-11-27 23:04:25 +0900 (bb33a45) +++ lib/groonga/command/parser.rb 2012-11-27 23:04:36 +0900 (343e1ba) @@ -114,7 +114,7 @@ module Groonga consume_data(parser, data) if parsed_command.nil? - raise ParseError, "not completed: <#{data.inspect}>" + raise ParseError.new("not completed", data.lines.to_a.last, "") end parsed_command @@ -144,7 +144,9 @@ module Groonga def finish if @loading - raise ParseError, "not completed" + raise ParseError.new("not completed", + @command.original_source.lines.to_a.last, + "") else catch do |tag| parse_line(@buffer) -------------- next part -------------- HTML����������������������������... 다운로드