diff --git a/core/Maps/MapManager.php b/core/Maps/MapManager.php index 6fb3b792..652f345b 100644 --- a/core/Maps/MapManager.php +++ b/core/Maps/MapManager.php @@ -427,6 +427,9 @@ class MapManager implements CallbackListener, CommunicationListener { return; } throw $e; + } catch(FileException $e){ + $this->maniaControl->getChat()->sendError("Could not write file", $login); + return; } } diff --git a/libs/Maniaplanet/DedicatedServer/Xmlrpc/FaultException.php b/libs/Maniaplanet/DedicatedServer/Xmlrpc/FaultException.php index 8953735b..a1bf7b68 100755 --- a/libs/Maniaplanet/DedicatedServer/Xmlrpc/FaultException.php +++ b/libs/Maniaplanet/DedicatedServer/Xmlrpc/FaultException.php @@ -80,6 +80,7 @@ class FaultException extends Exception { case 'The scores must be decreasing.': case 'No current script.': return new GameModeException($faultString, $faultCode); + case 'couldn\'t write file.': case 'Unable to write the black list file.': case 'Unable to write the guest list file.': case 'Unable to write the playlist file.':