fixed a bug

This commit is contained in:
kremsy authored and Steffen Schröder committed 2014-05-01 17:35:08 +02:00
1 parent 06980c949e
commit 10fe4c3e7e
1 file changed
+3 -1
+3 -1
View File
@@ -555,7 +555,9 @@ 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;
}