mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-23 00:23:08 +01:00
better error message
This commit is contained in:
parent
b88f66192f
commit
9b5bb8390c
7
client.c
7
client.c
@ -296,6 +296,13 @@ client_main(struct event_base *base, int argc, char **argv, int flags,
|
||||
fprintf(stderr, "no server running on %s\n",
|
||||
socket_path);
|
||||
} else {
|
||||
#ifdef TMATE
|
||||
if (errno == ENOENT)
|
||||
fprintf(stderr, "You must specify a socket name with -S. For example: \n"
|
||||
" tmate -S /tmp/tmate.sock new-session -d\n"
|
||||
" tmate -S /tmp/tmate.sock wait tmate-ready\n");
|
||||
else
|
||||
#endif
|
||||
fprintf(stderr, "error connecting to %s (%s)\n",
|
||||
socket_path, strerror(errno));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user