found a new exception and fixed

This commit is contained in:
kremsy 2017-05-13 15:13:33 +02:00
parent 9df27b7113
commit f9b73816c3
2 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@ namespace ManiaControl\Callbacks;
use ManiaControl\ErrorHandler;
use ManiaControl\General\UsageInformationAble;
use ManiaControl\General\UsageInformationTrait;
use ManiaControl\Logger;
use ManiaControl\ManiaControl;
use Maniaplanet\DedicatedServer\Xmlrpc\ParseException;
@ -239,6 +240,7 @@ class CallbackManager implements UsageInformationAble {
$callbacks = $this->maniaControl->getClient()->executeCallbacks();
} catch (ParseException $e) {
//TODO remove later, its for the wrong XML encoding of nadeo
Logger::logError("Parse Exception");
return;
}

View File

@ -66,6 +66,7 @@ class FaultException extends Exception {
case 'Map lightmap is not up to date.':
case 'Map lightmap is not up to date. (will still load for now)':
case 'The map doesn\'t match the server packmask.':
case 'The map environment is not available on the server (doesn\'t match the server packmask). ':
return new InvalidMapException($faultString, $faultCode);
case 'Ladder mode unknown.':
case 'You cannot change the max players count: AllowSpectatorRelays is activated.':