catch map related exception
This commit is contained in:
parent
a5e9615933
commit
a3a7e06926
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user