Skip to content

Commit

Permalink
Use FMT_THROW macro where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
scramsby authored and vitaut committed Mar 27, 2020
1 parent 2864e84 commit 770a94e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/format-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ FMT_FUNC void vprint(std::FILE* f, string_view format_str, format_args args) {
if (!WriteConsoleW(reinterpret_cast<HANDLE>(_get_osfhandle(fd)),
u16.c_str(), static_cast<DWORD>(u16.size()), &written,
nullptr)) {
throw format_error("failed to write to console");
FMT_THROW(format_error("failed to write to console"));
}
return;
}
Expand Down

0 comments on commit 770a94e

Please sign in to comment.