Fixed libloadorder errors missing details.

This commit is contained in:
WrinklyNinja
2014-03-29 16:15:25 +00:00
parent c7ceb24d35
commit 9f3d2a0acc
+7 -7
View File
@@ -295,7 +295,7 @@ namespace loot {
}
else {
BOOST_LOG_TRIVIAL(error) << "libloadorder failed to get the active plugins list. Details: " << e;
string err = lc::translate("libloadorder failed to get the active plugins list. Details:").str() + " " + e;
err = lc::translate("libloadorder failed to get the active plugins list. Details:").str() + " " + e;
}
lo_cleanup();
throw error(error::liblo_error, err);
@@ -340,7 +340,7 @@ namespace loot {
}
else {
BOOST_LOG_TRIVIAL(error) << "libloadorder failed to create a game handle. Details: " << e;
string err = lc::translate("libloadorder failed to create a game handle. Details:").str() + " " + e;
err = lc::translate("libloadorder failed to create a game handle. Details:").str() + " " + e;
}
lo_cleanup();
throw error(error::liblo_error, err);
@@ -359,7 +359,7 @@ namespace loot {
}
else {
BOOST_LOG_TRIVIAL(error) << "libloadorder failed to initialise game master file support. Details: " << e;
string err = lc::translate("libloadorder failed to initialise game master file support. Details:").str() + " " + e;
err = lc::translate("libloadorder failed to initialise game master file support. Details:").str() + " " + e;
}
lo_cleanup();
throw error(error::liblo_error, err);
@@ -376,7 +376,7 @@ namespace loot {
}
else {
BOOST_LOG_TRIVIAL(error) << "libloadorder failed to get the load order. Details: " << e;
string err = lc::translate("libloadorder failed to get the load order. Details:").str() + " " + e;
err = lc::translate("libloadorder failed to get the load order. Details:").str() + " " + e;
}
lo_cleanup();
throw error(error::liblo_error, err);
@@ -416,7 +416,7 @@ namespace loot {
}
else {
BOOST_LOG_TRIVIAL(error) << "libloadorder failed to create a game handle. Details: " << e;
string err = lc::translate("libloadorder failed to create a game handle. Details:").str() + " " + e;
err = lc::translate("libloadorder failed to create a game handle. Details:").str() + " " + e;
}
lo_cleanup();
throw error(error::liblo_error, err);
@@ -434,7 +434,7 @@ namespace loot {
}
else {
BOOST_LOG_TRIVIAL(error) << "libloadorder failed to initialise game master file support. Details: " << e;
string err = lc::translate("libloadorder failed to initialise game master file support. Details:").str() + " " + e;
err = lc::translate("libloadorder failed to initialise game master file support. Details:").str() + " " + e;
}
lo_cleanup();
throw error(error::liblo_error, err);
@@ -463,7 +463,7 @@ namespace loot {
}
else {
BOOST_LOG_TRIVIAL(error) << "libloadorder failed to set the load order. Details: " << e;
string err = lc::translate("libloadorder failed to set the load order. Details:").str() + " " + e;
err = lc::translate("libloadorder failed to set the load order. Details:").str() + " " + e;
}
lo_cleanup();
throw error(error::liblo_error, err);