Fixed issue #96.

This commit is contained in:
WrinklyNinja
2014-02-01 11:40:23 +00:00
parent 0d10f288a6
commit 84dd66ed8d
2 changed files with 1 additions and 7 deletions
-6
View File
@@ -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);
+1 -1
View File
@@ -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);