diff --git a/app/controllers/api/v1/base_controller.rb b/app/controllers/api/v1/base_controller.rb index f1e5e992fb..15a75cc0d1 100644 --- a/app/controllers/api/v1/base_controller.rb +++ b/app/controllers/api/v1/base_controller.rb @@ -54,7 +54,7 @@ module Api def error_during_processing(exception) Alert.raise(exception) - if Rails.env.development? || Rails.env.test? + if Rails.env.local? render status: :unprocessable_entity, json: json_api_error(exception.message, meta: exception.backtrace) else