Skip to content

Commit

Permalink
Add FMT_STRING for format_to() call (#3413)
Browse files Browse the repository at this point in the history
  • Loading branch information
mogemimi committed May 3, 2023
1 parent d7a8e50 commit d8973bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os.cc
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ void detail::format_windows_error(detail::buffer<char>& out, int error_code,
if (msg) {
auto utf8_message = utf16_to_utf8();
if (utf8_message.convert(msg) == ERROR_SUCCESS) {
fmt::format_to(buffer_appender<char>(out), "{}: {}", message,
string_view(utf8_message));
fmt::format_to(buffer_appender<char>(out), FMT_STRING("{}: {}"),
message, string_view(utf8_message));
return;
}
}
Expand Down

0 comments on commit d8973bf

Please sign in to comment.