Explicitly notify Bugsnag on errors during API response processing

These errors are currently not being sent :/
This commit is contained in:
Matt-Yorkley
2021-01-06 12:59:19 +00:00
parent 67bf6bb5fc
commit b842bfbc3d

View File

@@ -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