commit ac72beaa2b367959bef62686512d07137237f42f
parent f7c1213806c3237e00809821f9aa4ed1f21a0ea0
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Wed, 29 Sep 2021 19:49:31 +0300
transmit_error_response(): improved error log messages
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -2253,7 +2253,7 @@ transmit_error_response_len (struct MHD_Connection *connection,
{
#ifdef HAVE_MESSAGES
MHD_DLOG (connection->daemon,
- _ ("Cannot create error response.\n"),
+ _ ("Failed to create error response.\n"),
status_code,
message);
#endif
@@ -2269,8 +2269,8 @@ transmit_error_response_len (struct MHD_Connection *connection,
{
/* can't even send a reply, at least close the connection */
CONNECTION_CLOSE_ERROR (connection,
- _ (
- "Closing connection (failed to queue response)."));
+ _ ("Closing connection " \
+ "(failed to queue error response)."));
return;
}
mhd_assert (NULL != connection->response);
@@ -2280,8 +2280,8 @@ transmit_error_response_len (struct MHD_Connection *connection,
{
/* oops - close! */
CONNECTION_CLOSE_ERROR (connection,
- _ (
- "Closing connection (failed to create response header)."));
+ _ ("Closing connection " \
+ "(failed to create error response header)."));
}
else
{