racket/tcp: use %E instead of %e for socket error reporting
Using "%E" is right for WinSock errors, instead of "%e".
This commit is contained in:
parent
2134dbf952
commit
d3e008af50
|
@ -1395,7 +1395,7 @@ static intptr_t tcp_get_string(Scheme_Input_Port *port,
|
||||||
if (data->b.bufmax == -1) {
|
if (data->b.bufmax == -1) {
|
||||||
scheme_raise_exn(MZEXN_FAIL_NETWORK,
|
scheme_raise_exn(MZEXN_FAIL_NETWORK,
|
||||||
"tcp-read: error reading\n"
|
"tcp-read: error reading\n"
|
||||||
" system error: %e",
|
" system error: %E",
|
||||||
errid);
|
errid);
|
||||||
return 0;
|
return 0;
|
||||||
} else if (!data->b.bufmax) {
|
} else if (!data->b.bufmax) {
|
||||||
|
@ -1555,7 +1555,7 @@ static intptr_t tcp_do_write_string(Scheme_Output_Port *port,
|
||||||
if (errid)
|
if (errid)
|
||||||
scheme_raise_exn(MZEXN_FAIL_NETWORK,
|
scheme_raise_exn(MZEXN_FAIL_NETWORK,
|
||||||
"tcp-write: error writing\n"
|
"tcp-write: error writing\n"
|
||||||
" system error: %e",
|
" system error: %E",
|
||||||
errid);
|
errid);
|
||||||
|
|
||||||
return sent;
|
return sent;
|
||||||
|
@ -2595,7 +2595,7 @@ static Scheme_Object *tcp_addresses(int argc, Scheme_Object *argv[])
|
||||||
if (getsockname(socket, (struct sockaddr *)here, &l)) {
|
if (getsockname(socket, (struct sockaddr *)here, &l)) {
|
||||||
scheme_raise_exn(MZEXN_FAIL_NETWORK,
|
scheme_raise_exn(MZEXN_FAIL_NETWORK,
|
||||||
"tcp-addresses: could not get local address\n"
|
"tcp-addresses: could not get local address\n"
|
||||||
" system error: %e",
|
" system error: %E",
|
||||||
SOCK_ERRNO());
|
SOCK_ERRNO());
|
||||||
}
|
}
|
||||||
here_len = l;
|
here_len = l;
|
||||||
|
@ -2606,7 +2606,7 @@ static Scheme_Object *tcp_addresses(int argc, Scheme_Object *argv[])
|
||||||
if (peerrc && !udp) {
|
if (peerrc && !udp) {
|
||||||
scheme_raise_exn(MZEXN_FAIL_NETWORK,
|
scheme_raise_exn(MZEXN_FAIL_NETWORK,
|
||||||
"tcp-addresses: could not get peer address\n"
|
"tcp-addresses: could not get peer address\n"
|
||||||
" system error: %e",
|
" system error: %E",
|
||||||
SOCK_ERRNO());
|
SOCK_ERRNO());
|
||||||
}
|
}
|
||||||
there_len = l;
|
there_len = l;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user