lib/webmachine/events.rb in webmachine-1.4.0 vs lib/webmachine/events.rb in webmachine-1.5.0
- old
+ new
@@ -53,12 +53,12 @@
# Instrument the given block by measuring the time taken to execute it
# and publish it. Notice that events get sent even if an error occurs
# in the passed-in block.
#
- # If an exception happens during an instrumentation the payload will
+ # If an error happens during an instrumentation the payload will
# have a key `:exception` with an array of two elements as value:
- # a string with the name of the exception class, and the exception
+ # a string with the name of the error class, and the error
# message. (when using the default
# [AS::Notifications](http://rubydoc.info/gems/as-notifications/AS/Notifications)
# backend)
#
# @param name [String] the event name