Expose `AjaxController` errors in dev envirnoments
This commit is contained in:
parent
0fe06e6423
commit
37732ff926
|
@ -6,6 +6,7 @@ class AjaxController < ApplicationController
|
||||||
|
|
||||||
respond_to :json
|
respond_to :json
|
||||||
|
|
||||||
|
unless Rails.env.development?
|
||||||
rescue_from(StandardError) do |e|
|
rescue_from(StandardError) do |e|
|
||||||
Sentry.capture_exception(e)
|
Sentry.capture_exception(e)
|
||||||
|
|
||||||
|
@ -17,6 +18,7 @@ class AjaxController < ApplicationController
|
||||||
|
|
||||||
return_response
|
return_response
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
rescue_from(KeyError) do |e|
|
rescue_from(KeyError) do |e|
|
||||||
Sentry.capture_exception(e)
|
Sentry.capture_exception(e)
|
||||||
|
|
Loading…
Reference in New Issue