From: Beat Bolli Date: Wed, 25 Dec 2013 14:30:07 +0000 (+0100) Subject: irk: bail out early on connection errors X-Git-Tag: 2.8~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4951540bb7844332ae5f2f4c1bbce7b0de9dd530;p=irker.git irk: bail out early on connection errors Signed-off-by: Eric S. Raymond --- diff --git a/irk b/irk index 3ef9b4e..1138a06 100755 --- a/irk +++ b/irk @@ -24,6 +24,7 @@ try: s = socket.create_connection(("localhost", 6659)) except socket.error, e: sys.stderr.write("irk: no irkerd running: %r\n" % e) + sys.exit(1) target = sys.argv[1] if not "irc:" in target: