Skip to content

Commit

Permalink
Changing a stray reference to 'msg' as a Repsonse in robot.coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreyanderson committed Mar 13, 2015
1 parent 25a36d4 commit 2e948ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/robot.coffee
Expand Up @@ -161,14 +161,14 @@ class Robot
# user emitted error events.
#
# err - An Error object.
# msg - An optional Response object that generated the error
# res - An optional Response object that generated the error
#
# Returns nothing.
invokeErrorHandlers: (err, msg) ->
invokeErrorHandlers: (err, res) ->
@logger.error err.stack
for errorHandler in @errorHandlers
try
errorHandler(err, msg)
errorHandler(err, res)
catch errErr
@logger.error "while invoking error handler: #{errErr}\n#{errErr.stack}"

Expand Down

0 comments on commit 2e948ab

Please sign in to comment.