Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Report ActionCable errors to Sentry

Zach Gollwitzer087dd720c181
diff --git a/app/channels/application_cable/connection.rb b/app/channels/application_cable/connection.rb
index 0ff5442f..8415947f 100644
--- a/app/channels/application_cable/connection.rb
+++ b/app/channels/application_cable/connection.rb
@@ -1,4 +1,10 @@
module ApplicationCable
class Connection < ActionCable::Connection::Base
+ rescue_from StandardError, with: :report_error
+
+ private
+ def report_error(e)
+ Sentry.capture_exception(e)
+ end
end
end