Improved a few error messages slightly.

This commit is contained in:
Oliver Hamlet
2014-10-26 11:03:37 +00:00
parent 2529826d7e
commit b636bb0bf8
+4 -4
View File
@@ -761,12 +761,12 @@ namespace loot {
callback->Success(JSON::stringify(gameNode));
}
catch (loot::error &e) {
BOOST_LOG_TRIVIAL(error) << "Failed to change game. Details: " << e.what();
callback->Failure(e.code(), string("Failed to change game. Details: ") + e.what());
BOOST_LOG_TRIVIAL(error) << "Failed to get game data. Details: " << e.what();
callback->Failure(e.code(), string("Failed to get game data. Details: ") + e.what());
}
catch (std::exception& e) {
BOOST_LOG_TRIVIAL(error) << "Failed to change game. Details: " << e.what();
callback->Failure(-1, string("Failed to change game. Details: ") + e.what());
BOOST_LOG_TRIVIAL(error) << "Failed to get game data. Details: " << e.what();
callback->Failure(-1, string("Failed to get game data. Details: ") + e.what());
}
}