Better error message in case of a failure to creaet a server.

This commit is contained in:
hiker
2016-10-12 17:21:15 +11:00
parent 061827a1ac
commit 83ffbd96e1

View File

@@ -230,7 +230,7 @@ void ServerLobbyRoomProtocol::registerServer()
{
irr::core::stringc error(request->getInfo().c_str());
Log::error("RegisterServer", "%s", error.c_str());
STKHost::get()->setErrorMessage(_("Failed to register server"));
STKHost::get()->setErrorMessage(_("Failed to register server: %s", error.c_str()));
}
} // registerServer