Skip to content

Commit

Permalink
refactor: expand argument name for readability
Browse files Browse the repository at this point in the history
 expansion of the `exp` var to `exception` in the `instrument_internal_error` metric subscriber
  • Loading branch information
jonrandahl committed Aug 28, 2024
1 parent 15ec882 commit b24f504
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def change_default_caching_policy
# @param [Exception] exp the exception that caused the error
# @return [ActiveSupport::Notifications::Event] provides an object-oriented
# interface to the event
def instrument_internal_error(exp)
ActiveSupport::Notifications.instrument('internal_error.application', exception: exp)
def instrument_internal_error(exception)
ActiveSupport::Notifications.instrument('internal_error.application', exception: exception)
end
end

0 comments on commit b24f504

Please sign in to comment.