From 770a94edefd7589f7fbd410346f68f503d988bfe Mon Sep 17 00:00:00 2001 From: Scott Ramsby Date: Wed, 25 Mar 2020 10:42:29 -0700 Subject: [PATCH] Use FMT_THROW macro where applicable --- include/fmt/format-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h index 76e5682b..f632714d 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -1371,7 +1371,7 @@ FMT_FUNC void vprint(std::FILE* f, string_view format_str, format_args args) { if (!WriteConsoleW(reinterpret_cast(_get_osfhandle(fd)), u16.c_str(), static_cast(u16.size()), &written, nullptr)) { - throw format_error("failed to write to console"); + FMT_THROW(format_error("failed to write to console")); } return; }