X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/86c4b60b5f9e8ab1f20eeee1da0afce3db57ab3b..128506128f407047b3dc40e219cc9734afa7090a:/services/api/app/controllers/application_controller.rb diff --git a/services/api/app/controllers/application_controller.rb b/services/api/app/controllers/application_controller.rb index 1934504a2f..ad22accd71 100644 --- a/services/api/app/controllers/application_controller.rb +++ b/services/api/app/controllers/application_controller.rb @@ -104,9 +104,8 @@ class ApplicationController < ActionController::Base if e.respond_to? :backtrace and e.backtrace logger.error e.backtrace.collect { |x| x + "\n" }.join('') end - if (@object and @object.respond_to? :errors and - @object.errors and @object.errors.full_messages and - not @object.errors.full_messages.empty?) + if (@object.respond_to? :errors and + @object.errors.andand.full_messages.andand.any?) errors = @object.errors.full_messages logger.error errors.inspect else