diff --git a/pirate/pirate.py b/pirate/pirate.py index 3a992f0..7e7286b 100755 --- a/pirate/pirate.py +++ b/pirate/pirate.py @@ -259,8 +259,9 @@ def connect_mirror(mirror, printer, args): mode=args.action, terms=args.search, mirror=mirror) - except (urllib.error.URLError, socket.timeout, IOError, ValueError): - printer.print('Failed', color='WARN') + except (urllib.error.URLError, socket.timeout, IOError, ValueError) as e: + printer.print('Failed', color='WARN', end=' ') + printer.print('(', e, ')', sep='') return None else: printer.print('Ok', color='alt')