[Groonga-commit] droonga/droonga-client-ruby at 275faf9 [master] http: use inspect instead of JSON.generate

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jan 20 16:38:09 JST 2014


Kouhei Sutou	2014-01-20 16:38:09 +0900 (Mon, 20 Jan 2014)

  New Revision: 275faf9dc6098448d3ea380bd1a3ac09a03fdc31
  https://github.com/droonga/droonga-client-ruby/commit/275faf9dc6098448d3ea380bd1a3ac09a03fdc31

  Message:
    http: use inspect instead of JSON.generate
    
    Because it is a Ruby object received by user. It is not derived from
    JSON data.

  Modified files:
    lib/droonga/client/connection/http.rb

  Modified: lib/droonga/client/connection/http.rb (+1 -1)
===================================================================
--- lib/droonga/client/connection/http.rb    2014-01-20 16:35:54 +0900 (2e61483)
+++ lib/droonga/client/connection/http.rb    2014-01-20 16:38:09 +0900 (e93fd4e)
@@ -154,7 +154,7 @@ module Droonga
                                http_headers)
           else
             raise ArgumentError.new("Unsupport HTTP Method: #{http_method}, " +
-                                      "in the message: #{JSON.generate(message)}")
+                                      "in the message: <#{message.inspect}>")
           end
         end
 
-------------- next part --------------
HTML����������������������������...
Download 



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