mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fixed issue #96.
This commit is contained in:
@@ -560,12 +560,6 @@ namespace boss {
|
||||
|
||||
AppendScripts(body);
|
||||
//PugiXML's save_file doesn't handle Unicode paths right (it can't open them right), so use a stream instead.
|
||||
/*
|
||||
if (!doc.save_file(file.c_str(), "\t", pugi::format_default | pugi::format_no_declaration | pugi::format_raw)) {
|
||||
BOOST_LOG_TRIVIAL(error) << "Could not write BOSS report to: " << file;
|
||||
throw boss::error(boss::error::path_write_fail, boost::locale::translate("Could not write BOSS report.").str());
|
||||
}
|
||||
*/
|
||||
boost::filesystem::path outpath(file);
|
||||
boss::ofstream out(outpath);
|
||||
doc.save(out, "\t", pugi::format_default | pugi::format_no_declaration | pugi::format_raw);
|
||||
|
||||
@@ -310,7 +310,7 @@ namespace boss {
|
||||
//Roll back one revision if there's an error.
|
||||
BOOST_LOG_TRIVIAL(error) << "Masterlist parsing failed. Masterlist revision " + string(revision) + ": " + e.what();
|
||||
|
||||
parsingErrors.push_back(boss::Message(boss::g_message_error, boost::locale::translate("Masterlist revision").str() + " " + string(revision) + ": " + e.what()));
|
||||
parsingErrors.push_back(boss::Message(boss::g_message_error, boost::locale::translate("Masterlist revision").str() + " " + string(revision) + ": " + e.what() + " " + boost::locale::translate("Rolled back to the previous revision.").str()));
|
||||
}
|
||||
} while (parsingFailed);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user