X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/90483e26cf9f0ced8e5b12586ae3a5e1ec620add..209dd423250e0ab9e9b4f9d27d28071669b13d7b:/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 c4f64f6039..ba7c07d272 100644 --- a/services/api/app/controllers/application_controller.rb +++ b/services/api/app/controllers/application_controller.rb @@ -3,6 +3,7 @@ # SPDX-License-Identifier: AGPL-3.0 require 'safe_json' +require 'request_error' module ApiTemplateOverride def allowed_to_render?(fieldset, field, model, options) @@ -137,7 +138,7 @@ class ApplicationController < ActionController::Base def render_error(e) logger.error e.inspect - if e.respond_to? :backtrace and e.backtrace + if !e.is_a? RequestError and (e.respond_to? :backtrace and e.backtrace) logger.error e.backtrace.collect { |x| x + "\n" }.join('') end if (@object.respond_to? :errors and