Kouhei Sutou
null+****@clear*****
Mon Oct 14 11:12:44 JST 2013
Kouhei Sutou 2013-10-14 11:12:44 +0900 (Mon, 14 Oct 2013) New Revision: 1255a1e6a06605f232ea7bdd2800e928e3bfb4d0 https://github.com/groonga/grntest/commit/1255a1e6a06605f232ea7bdd2800e928e3bfb4d0 Message: Follow parser error class name change Modified files: lib/grntest/executors/base-executor.rb Modified: lib/grntest/executors/base-executor.rb (+3 -3) =================================================================== --- lib/grntest/executors/base-executor.rb 2013-10-14 11:00:29 +0900 (13abef7) +++ lib/grntest/executors/base-executor.rb 2013-10-14 11:12:44 +0900 (54e24bf) @@ -54,10 +54,10 @@ module Grntest script_file.each_line do |line| begin parser << line - rescue Error, Groonga::Command::ParseError + rescue Error, Parser::Error line_info = "#{script_path}:#{script_file.lineno}:#{line.chomp}" log_error("#{line_info}: #{$!.message}") - if $!.is_a?(Groonga::Command::ParseError) + if $!.is_a?(Parser::Error) @context.abort else log_error("#{line_info}: #{$!.message}") @@ -290,7 +290,7 @@ module Grntest status = nil begin status, = ResponseParser.parse(response, type) - rescue ParseError + rescue Parser::Error return false end -------------- next part -------------- HTML����������������������������... Download