mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
Explicitly notify Bugsnag on errors during API response processing
These errors are currently not being sent :/
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user