mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
Attempt to ensure that everything passed to connection_fatal() is
also logged to the Event Log, so that it's easy to cut-and-paste the error message afterwards. [originally from svn r1599]
This commit is contained in:
3
telnet.c
3
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user