mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-14 01:27:35 -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
raw.c
3
raw.c
@ -33,7 +33,8 @@ static int raw_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