catch map related exception

This commit is contained in:
Steffen Schröder 2014-07-19 23:55:01 +02:00
parent a5e9615933
commit a3a7e06926

View File

@ -622,6 +622,10 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
} catch (NextMapException $exception) { } catch (NextMapException $exception) {
$this->maniaControl->chat->sendError('Error on Jumping to Map Ident: ' . $exception->getMessage(), $player); $this->maniaControl->chat->sendError('Error on Jumping to Map Ident: ' . $exception->getMessage(), $player);
break; break;
} catch (NotInListException $exception) {
// TODO: "Map not found." -> how is that possible?
$this->maniaControl->chat->sendError('Error on Jumping to Map Ident: ' . $exception->getMessage(), $player);
break;
} }
$map = $this->maniaControl->mapManager->getMapByUid($mapUid); $map = $this->maniaControl->mapManager->getMapByUid($mapUid);