Skip to content

Commit

Permalink
exceptional grooming
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffthemedio committed Dec 8, 2019
1 parent f15151b commit c86a6cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion network/Message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ Message DispatchCombatLogsMessage(const std::vector<std::pair<int, const CombatL
freeorion_xml_oarchive oa(os);
try {
oa << BOOST_SERIALIZATION_NVP(logs);
} catch (std::exception e) {
} catch (const std::exception& e) {
ErrorLogger() << "Caught exception serializing combat logs: " << e.what();
}
}
Expand Down
2 changes: 1 addition & 1 deletion server/ServerApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ void ServerApp::UpdateCombatLogs(const Message& msg, PlayerConnectionPtr player_

try {
player_connection->SendMessage(DispatchCombatLogsMessage(logs));
} catch (std::exception e) {
} catch (const std::exception& e) {
ErrorLogger() << "caught exception sending combat logs message: " << e.what();
std::vector<std::pair<int, const CombatLog>> empty_logs;
player_connection->SendMessage(DispatchCombatLogsMessage(empty_logs));
Expand Down
2 changes: 1 addition & 1 deletion util/Directories.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ void InitBinDir(const std::string& argv0) {
problem = true;
}

} catch (fs::filesystem_error err) {
} catch (...) {
problem = true;
}

Expand Down

0 comments on commit c86a6cf

Please sign in to comment.