Nicer error when listen on socket is not found
This commit is contained in:
parent
02d06d6726
commit
ca2a121696
1 changed files with 2 additions and 0 deletions
|
|
@ -516,6 +516,8 @@ def main(args: List[str]) -> None:
|
|||
except KeyboardInterrupt:
|
||||
sys.excepthook = lambda *a: print('Interrupted by user', file=sys.stderr)
|
||||
raise
|
||||
except FileNotFoundError:
|
||||
raise SystemExit(f'No listen on socket found at: {global_opts.to}')
|
||||
except SocketClosed as e:
|
||||
raise SystemExit(str(e))
|
||||
if no_response:
|
||||
|
|
|
|||
Loading…
Reference in a new issue