mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-15 11:46:56 +02:00
CClient::loadGame: throw proper error if server save is missing
This commit is contained in:
parent
02a45007e7
commit
f721d22dfb
@ -285,7 +285,7 @@ void CClient::loadGame(const std::string & fname, const bool server, const std::
|
|||||||
|
|
||||||
if(clientSaveName.empty())
|
if(clientSaveName.empty())
|
||||||
throw std::runtime_error("Cannot open client part of " + fname);
|
throw std::runtime_error("Cannot open client part of " + fname);
|
||||||
if(controlServerSaveName.empty())
|
if(controlServerSaveName.empty() || !boost::filesystem::exists(controlServerSaveName))
|
||||||
throw std::runtime_error("Cannot open server part of " + fname);
|
throw std::runtime_error("Cannot open server part of " + fname);
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user