From 0763d8cadfc037a455c48151a983d3d46208f8c1 Mon Sep 17 00:00:00 2001 From: Jussi Viiri Date: Sat, 15 May 2021 23:13:58 +0300 Subject: [PATCH] Fix Visual Studio warning --- src/os.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os.cc b/src/os.cc index 6474d455..279a8a8d 100644 --- a/src/os.cc +++ b/src/os.cc @@ -159,7 +159,7 @@ FMT_API const std::error_category& system_category() FMT_NOEXCEPT { std::system_error vwindows_error(int err_code, string_view format_str, format_args args) { auto ec = std::error_code(err_code, system_category()); - throw std::system_error(ec, vformat(format_str, args)); + return std::system_error(ec, vformat(format_str, args)); } void detail::format_windows_error(detail::buffer& out, int error_code,