fixed a bug

This commit is contained in:
kremsy 2014-01-27 22:01:42 +01:00 committed by Steffen Schröder
parent 06980c949e
commit 10fe4c3e7e

View File

@ -555,11 +555,13 @@ class MapManager implements CallbackListener {
}
// Add map to map list
if (!$this->maniaControl->client->insertMap($mapFileName)) {
try {
$this->maniaControl->client->insertMap($mapFileName);
} catch(\Exception $e) {
$this->maniaControl->chat->sendError("Couldn't add map to match settings!", $login);
return;
}
$this->updateFullMapList();
//Update Mx MapInfo