diff options
| author | Martin Ridgers <[email protected]> | 2021-09-15 12:51:01 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-09-16 09:34:29 +0200 |
| commit | c55df8f9cdded0da0dc6a4d6a42e043e46e9b27f (patch) | |
| tree | 641bcabb74352ade62a24d4af0563558a219b43e /zencore/except.cpp | |
| parent | Merge branch 'main' into linux-mac (diff) | |
| download | zen-c55df8f9cdded0da0dc6a4d6a42e043e46e9b27f.tar.xz zen-c55df8f9cdded0da0dc6a4d6a42e043e46e9b27f.zip | |
GetWindowsErrorAsString() -> GetErrorAsString()
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 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 |