diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb index 62fdaf9e..1124fc37 100644 --- a/config/initializers/sentry.rb +++ b/config/initializers/sentry.rb @@ -17,9 +17,9 @@ Sentry.init do |config| # These are used for user-facing errors, not when something goes wrong next if hint[:exception].is_a?(Errors::Base) - exception_class = hint[:exception].class.name + exception_class = hint[:exception].class if exception_fingerprints.key?(exception_class) - event.fingerprint = [exception_fingerprints[hint[:exception].class.name]] + event.fingerprint = [exception_fingerprints[exception_class]] end event