diff --git a/app/controllers/api/base_controller.rb b/app/controllers/api/base_controller.rb index 3d7b86378a..b75c92e22e 100644 --- a/app/controllers/api/base_controller.rb +++ b/app/controllers/api/base_controller.rb @@ -59,6 +59,8 @@ module Api end def error_during_processing(exception) + Bugsnag.notify(exception) + render(json: { exception: exception.message }, status: :unprocessable_entity) && return end