1
0
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:
Simon Tatham
2002-03-23 18:04:27 +00:00
parent eabd704d1e
commit 36d125e1d7
5 changed files with 30 additions and 9 deletions

View File

@ -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;
}