cought invalid maptype exception

This commit is contained in:
kremsy 2017-05-18 17:29:23 +02:00
parent 46ff13898f
commit 7efff0fa84

View File

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