diff options
Diffstat (limited to 'zencore/except.cpp')
| -rw-r--r-- | zencore/except.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zencore/except.cpp b/zencore/except.cpp index 44b8edffb..ebaecf815 100644 --- a/zencore/except.cpp +++ b/zencore/except.cpp @@ -72,13 +72,13 @@ 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 ErrorCode) { - return std::error_code(Win32ErrorCode, std::system_category()).message(); + return std::error_code(ErrorCode, std::system_category()).message(); } #if __cpp_lib_source_location |