Permalink
Browse files

Fix example client; will now report the correct hostname on a socket …

…error instead of 'localhost';
  • Loading branch information...
1 parent e3ba1ad commit 22f96b1210e09939e25437dcf8cd413ff42662cd nleskiw committed Mar 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/example-client.py
View
2 examples/example-client.py
@@ -43,7 +43,7 @@ def get_loadavg():
try:
sock.connect( (CARBON_SERVER,CARBON_PORT) )
except:
- print "Couldn't connect to localhost on port %d, is carbon-agent.py running?" % CARBON_PORT
+ print "Couldn't connect to %(server)s on port %(port)d, is carbon-agent.py running?" % { 'server':CARBON_SERVER, 'port':CARBON_PORT }
sys.exit(1)
while True:

0 comments on commit 22f96b1

Please sign in to comment.