Skip to content

Commit

Permalink
Log the cause of aborted async calls
Browse files Browse the repository at this point in the history
This was previously logging the AbortError, which doesn't give us useful
information.
  • Loading branch information
tarcieri committed Jul 21, 2012
1 parent 4ff10f0 commit 71175d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/celluloid/calls.rb
Expand Up @@ -99,7 +99,7 @@ def dispatch(obj)
obj.send(@method, *@arguments, &@block)
rescue AbortError => ex
# Swallow aborted async calls, as they indicate the caller made a mistake
Logger.crash("#{obj.class}: async call `#{@method}' aborted!", ex)
Logger.crash("#{obj.class}: async call `#{@method}' aborted!", ex.cause)
end
end
end
Expand Down

0 comments on commit 71175d9

Please sign in to comment.