Commit 10000c38 authored by gabime's avatar gabime

Better error message if WideCharToMultiByte fails

parent 8b42b7d2
......@@ -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()));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment