http: print port in error message

This commit is contained in:
Jōshin 2022-03-21 13:18:14 -06:00
parent 05046f756b
commit 6c386ce946
No known key found for this signature in database
GPG Key ID: A8BE5A9A521639D0

View File

@ -1483,7 +1483,8 @@ _http_serv_start(u3_http* htp_u)
u3_king_bail();
}
if ( c3y == htp_u->dis ) {
u3l_log("http: %s\n", uv_strerror(sas_i));
u3l_log("http: listen (%" PRIu16 "): %s\n", htp_u->por_s,
uv_strerror(sas_i));
u3_king_bail();
}
if ( (UV_EADDRINUSE == sas_i) || (UV_EACCES == sas_i) ) {