From 0e0e2aa5dfb76b60f52fb1245fdc414763ad74b6 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Tue, 21 Sep 2021 12:56:12 +0200 Subject: Added human-friendly formatting of response send errors --- zenhttp/httpsys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zenhttp/httpsys.cpp') diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp index 7ce970d15..cc56b484f 100644 --- a/zenhttp/httpsys.cpp +++ b/zenhttp/httpsys.cpp @@ -553,7 +553,7 @@ HttpMessageResponseRequest::IssueRequest(std::error_code& ErrorCode) CancelThreadpoolIo(Iocp); - ZEN_ERROR("failed to send HTTP response (error: '{}'), request URL: {}", SendResult, HttpReq->pRawUrl); + ZEN_ERROR("failed to send HTTP response (error: '{}'), request URL: '{}'", GetWindowsErrorAsString(SendResult), HttpReq->pRawUrl); ErrorCode = MakeWin32ErrorCode(SendResult); } -- cgit v1.2.3