[Groonga-commit] ranguba/groonga-client at ef413e9 [master] Add more information for request error

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Dec 22 00:22:19 JST 2016


Kouhei Sutou	2016-12-22 00:22:19 +0900 (Thu, 22 Dec 2016)

  New Revision: ef413e9c254c642fdd1bd1e5658631ac76ec2cd5
  https://github.com/ranguba/groonga-client/commit/ef413e9c254c642fdd1bd1e5658631ac76ec2cd5

  Message:
    Add more information for request error

  Modified files:
    lib/groonga/client/request/error.rb

  Modified: lib/groonga/client/request/error.rb (+4 -2)
===================================================================
--- lib/groonga/client/request/error.rb    2016-12-21 11:19:11 +0900 (3d2a800)
+++ lib/groonga/client/request/error.rb    2016-12-22 00:22:19 +0900 (e7ffb16)
@@ -29,8 +29,10 @@ module Groonga
           command =****@respo*****
           status_code =****@respo*****_code
           error_message =****@respo*****_message
-          message = "failed to execute: #{command.name}: #{status_code}: "
-          message << "<#{error_message}>"
+          message = "failed to execute: "
+          message << "#{command.command_name}: #{status_code}: "
+          message << "<#{error_message}>: "
+          message << command.to_command_format
           super(message)
         end
       end
-------------- next part --------------
HTML����������������������������...
Descargar 



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