diff options
Diffstat (limited to 'zencore')
| -rw-r--r-- | zencore/except.cpp | 6 | ||||
| -rw-r--r-- | zencore/include/zencore/except.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/zencore/except.cpp b/zencore/except.cpp index d57b539cd..123d8e231 100644 --- a/zencore/except.cpp +++ b/zencore/except.cpp @@ -31,13 +31,13 @@ ThrowLastError(std::string_view Message) std::string GetLastErrorAsString() { - return GetWindowsErrorAsString(zen::GetLastError()); + return GetErrorAsString(zen::GetLastError()); } std::string -GetWindowsErrorAsString(uint32_t Win32ErrorCode) +GetErrorAsString(uint32_t ErrorCode) { - return std::error_code(Win32ErrorCode, std::system_category()).message(); + return std::error_code(ErrorCode, std::system_category()).message(); } void diff --git a/zencore/include/zencore/except.h b/zencore/include/zencore/except.h index 486f3e380..5e0f580f2 100644 --- a/zencore/include/zencore/except.h +++ b/zencore/include/zencore/except.h @@ -56,7 +56,7 @@ ZENCORE_API void ThrowSystemException(HRESULT hRes, std::string_view Message); ZENCORE_API void ThrowLastError(std::string_view Message); ZENCORE_API void ThrowLastError(std::string_view Message, const std::source_location& Location); ZENCORE_API std::string GetLastErrorAsString(); -ZENCORE_API std::string GetWindowsErrorAsString(uint32_t Win32ErrorCode); +ZENCORE_API std::string GetErrorAsString(uint32_t ErrorCode); inline void ThrowSystemException(const char* Message) |