Kouhei Sutou
null+****@clear*****
Tue Dec 6 18:24:03 JST 2016
Kouhei Sutou 2016-12-06 18:24:03 +0900 (Tue, 06 Dec 2016) New Revision: 53a84b872982f6e1340008884dde63258e72534e https://github.com/ranguba/groonga-client-model/commit/53a84b872982f6e1340008884dde63258e72534e Message: Fix method name Modified files: lib/groonga_client_model/record.rb lib/groonga_client_model/schema.rb Modified: lib/groonga_client_model/record.rb (+2 -2) =================================================================== --- lib/groonga_client_model/record.rb 2016-12-06 18:22:03 +0900 (5829355) +++ lib/groonga_client_model/record.rb 2016-12-06 18:24:03 +0900 (b6d3031) @@ -140,7 +140,7 @@ module GroongaClientModel filter: "_id == #{_id}") unless response.success? message = "Failed to delete the record: " - message << "#{response.error_code}: #{response.error_message}" + message << "#{response.return_code}: #{response.error_message}" raise Error.new(message, self) end end @@ -198,7 +198,7 @@ module GroongaClientModel command_version: "3") unless response.success? message = "Failed to save: " - message << "#{response.error_code}: #{response.error_message}" + message << "#{response.return_code}: #{response.error_message}" raise RecordNotSaved.new(message, self) end if response.n_loaded_records.zero? Modified: lib/groonga_client_model/schema.rb (+1 -1) =================================================================== --- lib/groonga_client_model/schema.rb 2016-12-06 18:22:03 +0900 (a024111) +++ lib/groonga_client_model/schema.rb 2016-12-06 18:24:03 +0900 (6bc42bd) @@ -21,7 +21,7 @@ module GroongaClientModel response = client.schema unless response.success? message = "failed to retrieve schema: " - message << "#{response.error_code}:#{response.error_message}" + message << "#{response.return_code}:#{response.error_message}" raise Error, message end response -------------- next part -------------- HTML����������������������������... Télécharger