diff options
author | Nicolas Viennot <nicolas@viennot.biz> | 2016-03-27 02:29:43 -0400 |
---|---|---|
committer | Nicolas Viennot <nicolas@viennot.biz> | 2016-03-27 02:29:43 -0400 |
commit | 9b5bb8390cd5318a29ce6249b9f16a06d11b78f3 (patch) | |
tree | 360cc26c85334dc855385c493583486e218536c2 | |
parent | b88f66192f72f670e75b1948bf660454862debe0 (diff) |
better error message
-rw-r--r-- | client.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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)); } |