From 4951540bb7844332ae5f2f4c1bbce7b0de9dd530 Mon Sep 17 00:00:00 2001 From: Beat Bolli Date: Wed, 25 Dec 2013 15:30:07 +0100 Subject: [PATCH] irk: bail out early on connection errors Signed-off-by: Eric S. Raymond --- irk | 1 + 1 file changed, 1 insertion(+) 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: -- 2.26.2