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

Commit

Permalink
vcr: Improve error message for NoPeersAvailableError
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav committed Apr 6, 2016
1 parent e2e742c commit b50e765
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tchannel/testing/vcr/server.py
Expand Up @@ -125,8 +125,12 @@ def send(self, request):

if not peers:
raise proxy.NoPeersAvailableError(
'Both, hostPort and knownPeers were empty or unset. '
'One of them must be specified and non-empty.'
'Could not find a recorded response for request %s and was '
'unable to make a new request because both, hostPort and '
'knownPeers were unspecified. One of them must be specified '
'for me to make new requests. Make sure you specified a '
'hostport in the original request or are advertising '
'on Hyperbahn.' % (str(request),)
)

arg_scheme = proxy.ArgScheme.name_of(request.argScheme).lower()
Expand Down

0 comments on commit b50e765

Please sign in to comment.