diff --git a/application/core/Maps/MapManager.php b/application/core/Maps/MapManager.php index 321d17a6..05123da1 100644 --- a/application/core/Maps/MapManager.php +++ b/application/core/Maps/MapManager.php @@ -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