Better error message if WideCharToMultiByte fails

This commit is contained in:
gabime 2018-10-03 00:26:58 +03:00
parent 8b42b7d269
commit 10000c383a
1 changed files with 1 additions and 1 deletions

View File

@ -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()));
}
}