[Groonga-commit] droonga/drntest at 08ed335 [master] Report error when JSON has any error

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Nov 28 19:32:02 JST 2013


YUKI Hiroshi	2013-11-28 19:32:02 +0900 (Thu, 28 Nov 2013)

  New Revision: 08ed3351fd56618fcf99639ee825371401ede87f
  https://github.com/droonga/drntest/commit/08ed3351fd56618fcf99639ee825371401ede87f

  Message:
    Report error when JSON has any error

  Modified files:
    lib/drntest/test-runner.rb

  Modified: lib/drntest/test-runner.rb (+6 -1)
===================================================================
--- lib/drntest/test-runner.rb    2013-11-28 19:01:57 +0900 (5494283)
+++ lib/drntest/test-runner.rb    2013-11-28 19:32:02 +0900 (93462a5)
@@ -220,7 +220,12 @@ module Drntest
             end
           end
         else
-          parser << line
+          begin
+            parser << line
+          rescue Yajl::ParseError => error
+            p "Failed to load JSONs file: #{path.to_s}"
+            raise error
+          end
         end
       end
       json_objects
-------------- next part --------------
HTML����������������������������...
Download 



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