mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
Better error message if WideCharToMultiByte fails
This commit is contained in:
parent
8b42b7d269
commit
10000c383a
@ -193,7 +193,7 @@ inline void wbuf_to_utf8buf(const fmt::wmemory_buffer &wbuf, fmt::memory_buffer
|
||||
}
|
||||
else
|
||||
{
|
||||
throw spdlog::spdlog_ex("Failed converting to utf8", errno);
|
||||
throw spdlog::spdlog_ex(fmt::format("WideCharToMultiByte failed. Last error: {}", ::GetLastError()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user