diff options
| -rw-r--r-- | zencore/except.cpp | 5 | ||||
| -rw-r--r-- | zencore/include/zencore/except.h | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/zencore/except.cpp b/zencore/except.cpp index 124b9455f..68b9e9a9b 100644 --- a/zencore/except.cpp +++ b/zencore/except.cpp @@ -1,8 +1,8 @@ // Copyright Epic Games, Inc. All Rights Reserved. +#include <fmt/format.h> #include <zencore/except.h> #include <system_error> -#include <fmt/format.h> namespace zen { @@ -29,7 +29,8 @@ void ThrowLastError(std::string_view Message, const std::source_location& Location) { using namespace fmt::literals; - throw std::system_error(std::error_code(::GetLastError(), std::system_category()), "{}({}): {}"_format(Location.file_name(), Location.line(), Message)); + throw std::system_error(std::error_code(::GetLastError(), std::system_category()), + "{}({}): {}"_format(Location.file_name(), Location.line(), Message)); } } // namespace zen diff --git a/zencore/include/zencore/except.h b/zencore/include/zencore/except.h index 2357ba1b5..ca0539d6e 100644 --- a/zencore/include/zencore/except.h +++ b/zencore/include/zencore/except.h @@ -55,5 +55,4 @@ ThrowSystemException(const char* Message) ZENCORE_API void ThrowLastError(std::string_view Message); ZENCORE_API void ThrowLastError(std::string_view Message, const std::source_location& Location); - } // namespace zen |