Minor tweaks

This commit is contained in:
Kayne Ruse
2014-08-19 03:35:46 +10:00
parent 61337e29f6
commit dfe8c108de
4 changed files with 10 additions and 6 deletions
+5 -2
View File
@@ -223,8 +223,11 @@ void ServerApplication::HandlePacket(SerialPacket* const argPacket) {
break;
//handle errors
default:
throw(std::runtime_error(std::string() + "Unknown SerialPacketType encountered in the server: " + to_string_custom(static_cast<int>(argPacket->type)) ));
default: {
std::string msg = "Unknown SerialPacketType encountered in the server: ";
msg += to_string_custom(static_cast<int>(argPacket->type));
throw(std::runtime_error(msg));
}
break;
}
}