Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
add some debugging info to no-peer error
Browse files Browse the repository at this point in the history
  • Loading branch information
blampe committed Sep 21, 2015
1 parent 0eb7b0c commit aa3b945
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tchannel/tornado/peer.py
Expand Up @@ -519,7 +519,10 @@ def send(
# peer, we throw exceptions from retry not NoAvailablePeerError.
peer = self._choose()
if not peer:
raise NoAvailablePeerError("Can't find available peer.")
raise NoAvailablePeerError(
"Can't find an available peer for '%s'" % self.service
)

connection = yield peer.connect()

arg1, arg2, arg3 = (
Expand Down

0 comments on commit aa3b945

Please sign in to comment.