aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-27 11:43:40 +0200
committerStefan Boberg <[email protected]>2021-09-27 11:43:40 +0200
commitdd9aec560688547dfd60090436d843c76450bd62 (patch)
tree238d935657b50fa2cc154496f32017889bf64e6c
parentclang-format (diff)
downloadzen-dd9aec560688547dfd60090436d843c76450bd62.tar.xz
zen-dd9aec560688547dfd60090436d843c76450bd62.zip
GetWindowsErrorAsString() -> GetSystemErrorAsString()
-rw-r--r--zencore/except.cpp4
-rw-r--r--zencore/include/zencore/except.h2
-rw-r--r--zenhttp/httpsys.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/zencore/except.cpp b/zencore/except.cpp
index 44b8edffb..8614b52e1 100644
--- a/zencore/except.cpp
+++ b/zencore/except.cpp
@@ -72,11 +72,11 @@ ThrowSystemError(uint32_t ErrorCode, std::string_view Message)
std::string
GetLastErrorAsString()
{
- return GetWindowsErrorAsString(zen::GetLastError());
+ return GetSystemErrorAsString(zen::GetLastError());
}
std::string
-GetWindowsErrorAsString(uint32_t Win32ErrorCode)
+GetSystemErrorAsString(uint32_t Win32ErrorCode)
{
return std::error_code(Win32ErrorCode, std::system_category()).message();
}
diff --git a/zencore/include/zencore/except.h b/zencore/include/zencore/except.h
index 5cfefb1e2..3430565d2 100644
--- a/zencore/include/zencore/except.h
+++ b/zencore/include/zencore/except.h
@@ -27,7 +27,7 @@ ZENCORE_API void ThrowLastError [[noreturn]] (std::string_view Message, const st
ZENCORE_API void ThrowSystemError [[noreturn]] (uint32_t ErrorCode, std::string_view Message);
ZENCORE_API std::string GetLastErrorAsString();
-ZENCORE_API std::string GetWindowsErrorAsString(uint32_t Win32ErrorCode);
+ZENCORE_API std::string GetSystemErrorAsString(uint32_t Win32ErrorCode);
inline int32_t
GetLastError()
diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp
index 2a50388e3..b08e39a8a 100644
--- a/zenhttp/httpsys.cpp
+++ b/zenhttp/httpsys.cpp
@@ -417,7 +417,7 @@ HttpMessageResponseRequest::HandleCompletion(ULONG IoResult, ULONG_PTR NumberOfB
if (IoResult != NO_ERROR)
{
- ZEN_WARN("response aborted due to error: '{}'", GetWindowsErrorAsString(IoResult));
+ ZEN_WARN("response aborted due to error: '{}'", GetSystemErrorAsString(IoResult));
// if one transmit failed there's really no need to go on
return nullptr;
@@ -554,7 +554,7 @@ HttpMessageResponseRequest::IssueRequest(std::error_code& ErrorCode)
CancelThreadpoolIo(Iocp);
ZEN_ERROR("failed to send HTTP response (error: '{}'), request URL: '{}', request id: {}",
- GetWindowsErrorAsString(SendResult),
+ GetSystemErrorAsString(SendResult),
HttpReq->pRawUrl,
HttpReq->RequestId);