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

@@ -783,7 +783,7 @@ bool BerkeleyDatabase::Backup(const std::string& strDest)
LogPrintf("copied %s to %s\n", strFile, pathDest.string());
return true;
} catch (const fs::filesystem_error& e) {
LogPrintf("error copying %s to %s - %s\n", strFile, pathDest.string(), e.what());
LogPrintf("error copying %s to %s - %s\n", strFile, pathDest.string(), fsbridge::get_filesystem_error_message(e));
return false;
}
}