lib/ezid/client.rb in ezid-client-1.1.1 vs lib/ezid/client.rb in ezid-client-1.2.0
- old
+ new
@@ -2,10 +2,11 @@
require_relative "configuration"
require_relative "session"
require_relative "metadata"
require_relative "identifier"
+require_relative "proxy_identifier"
require_relative "error"
Dir[File.expand_path("../responses/*.rb", __FILE__)].each { |m| require m }
Dir[File.expand_path("../requests/*.rb", __FILE__)].each { |m| require m }
@@ -200,10 +201,10 @@
def handle_response(response, request_name)
log_level = response.error? ? Logger::ERROR : Logger::INFO
message = "EZID #{request_name} -- #{response.status_line}"
logger.log(log_level, message)
raise response.exception if response.exception
- response
+ response
end
def execute(request_class, *args)
response = request_class.execute(self, *args)
handle_response(response, request_class.short_name)