utils: Convert fs error messages from multibyte to utf-8

This commit is contained in:
Chun Kuan Lee
2018-09-11 02:08:56 +08:00
parent 6eeac2e628
commit e221368932
5 changed files with 21 additions and 3 deletions

View File

@@ -128,7 +128,7 @@ void DeleteAuthCookie()
try {
fs::remove(GetAuthCookieFile());
} catch (const fs::filesystem_error& e) {
LogPrintf("%s: Unable to remove random auth cookie file: %s\n", __func__, e.what());
LogPrintf("%s: Unable to remove random auth cookie file: %s\n", __func__, fsbridge::get_filesystem_error_message(e));
}
}