mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Nicer error when listen on socket is not found
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user