Oliver Günther 6 years ago
parent dbcad9486d
commit c5e14322ae
  1. 2
      lib/api/root.rb

@ -223,7 +223,7 @@ module API
# hide internal errors behind the same JSON response as all other errors
# only doing it in production to allow for easier debugging
if Rails.env.production?
error_response StandardError, ::API::Errors::InternalError.new, rescue_subclasses: true
error_response StandardError, ::API::Errors::InternalError, rescue_subclasses: true
end
# run authentication before each request

Loading…
Cancel
Save