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,7 +555,9 @@ class MapManager implements CallbackListener {
} }
// Add map to map list // 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); $this->maniaControl->chat->sendError("Couldn't add map to match settings!", $login);
return; return;
} }