From 5a09db0e7237be2eaacf13f4125150192c3371e2 Mon Sep 17 00:00:00 2001 From: steeffeen Date: Sun, 29 Jun 2014 22:16:07 +0200 Subject: [PATCH] catch file exceptions like "map unknown" --- application/core/Maps/MapManager.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/core/Maps/MapManager.php b/application/core/Maps/MapManager.php index 178c4245..7d942971 100644 --- a/application/core/Maps/MapManager.php +++ b/application/core/Maps/MapManager.php @@ -330,6 +330,9 @@ class MapManager implements CallbackListener { } catch (InvalidMapException $exception) { $this->maniaControl->chat->sendException($exception, $login); return; + } catch (FileException $exception) { + $this->maniaControl->chat->sendException($exception, $login); + return; } // Add map to map list