cought invalid maptype exception

This commit is contained in:
kremsy 2017-05-18 17:29:23 +02:00
parent 46ff13898f
commit 7efff0fa84
1 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@ use ManiaControl\Utils\Formatter;
use Maniaplanet\DedicatedServer\InvalidArgumentException;
use Maniaplanet\DedicatedServer\Xmlrpc\AlreadyInListException;
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
use Maniaplanet\DedicatedServer\Xmlrpc\FaultException;
use Maniaplanet\DedicatedServer\Xmlrpc\FileException;
use Maniaplanet\DedicatedServer\Xmlrpc\IndexOutOfBoundException;
use Maniaplanet\DedicatedServer\Xmlrpc\InvalidMapException;
@ -438,6 +439,9 @@ class MapManager implements CallbackListener, CommunicationListener, UsageInform
} catch (FileException $exception) {
$this->maniaControl->getChat()->sendException($exception, $login);
return;
}catch (FaultException $exception){
$this->maniaControl->getChat()->sendException($exception, $login);
return;
}
// Add map to map list