[Groonga-commit] groonga/grntest at 430e0e9 [master] Revert "Follow parser error class name change"

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Oct 14 11:15:39 JST 2013


Kouhei Sutou	2013-10-14 11:15:39 +0900 (Mon, 14 Oct 2013)

  New Revision: 430e0e949f89e0276d01f8b1bdfa8aec706f7f7d
  https://github.com/groonga/grntest/commit/430e0e949f89e0276d01f8b1bdfa8aec706f7f7d

  Message:
    Revert "Follow parser error class name change"
    
    This reverts commit 1255a1e6a06605f232ea7bdd2800e928e3bfb4d0.
    
    This commit doesn't fix anything... I will try again.

  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:12:44 +0900 (54e24bf)
+++ lib/grntest/executors/base-executor.rb    2013-10-14 11:15:39 +0900 (13abef7)
@@ -54,10 +54,10 @@ module Grntest
             script_file.each_line do |line|
               begin
                 parser << line
-              rescue Error, Parser::Error
+              rescue Error, Groonga::Command::ParseError
                 line_info = "#{script_path}:#{script_file.lineno}:#{line.chomp}"
                 log_error("#{line_info}: #{$!.message}")
-                if $!.is_a?(Parser::Error)
+                if $!.is_a?(Groonga::Command::ParseError)
                   @context.abort
                 else
                   log_error("#{line_info}: #{$!.message}")
@@ -290,7 +290,7 @@ module Grntest
         status = nil
         begin
           status, = ResponseParser.parse(response, type)
-        rescue Parser::Error
+        rescue ParseError
           return false
         end
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index