fixed an exception

This commit is contained in:
kremsy 2017-03-16 18:20:30 +01:00
parent adc4753fe4
commit 6fea856b9c
2 changed files with 4 additions and 0 deletions

View File

@ -427,6 +427,9 @@ class MapManager implements CallbackListener, CommunicationListener {
return; return;
} }
throw $e; throw $e;
} catch(FileException $e){
$this->maniaControl->getChat()->sendError("Could not write file", $login);
return;
} }
} }

View File

@ -80,6 +80,7 @@ class FaultException extends Exception {
case 'The scores must be decreasing.': case 'The scores must be decreasing.':
case 'No current script.': case 'No current script.':
return new GameModeException($faultString, $faultCode); return new GameModeException($faultString, $faultCode);
case 'couldn\'t write file.':
case 'Unable to write the black list file.': case 'Unable to write the black list file.':
case 'Unable to write the guest list file.': case 'Unable to write the guest list file.':
case 'Unable to write the playlist file.': case 'Unable to write the playlist file.':