]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - telnet.c
Document all the new command-line stuff.
[PuTTY.git] / telnet.c
index 8b3de1e589f287390db3badfccf8089e0c326b44..8ce3cf4fb8fbb6e1e76ebf66344c4238eef67969 100644 (file)
--- a/telnet.c
+++ b/telnet.c
@@ -575,7 +575,8 @@ static int telnet_closing(Plug plug, char *error_msg, int error_code,
     }
     if (error_msg) {
        /* A socket error has occurred. */
-       connection_fatal(error_msg);
+       logevent(error_msg);
+       connection_fatal("%s", error_msg);
     }                                 /* Otherwise, the remote side closed the connection normally. */
     return 0;
 }