updated exception
This commit is contained in:
parent
edcd18e8f5
commit
a32e7df5e0
@ -332,7 +332,7 @@ class Server implements CallbackListener, CommandListener, UsageInformationAble
|
||||
$login = Player::parseLogin($login);
|
||||
try {
|
||||
$replay = $this->maniaControl->getClient()->getValidationReplay($login);
|
||||
} catch (Exception $e) {
|
||||
} catch (Exception $e) { //UnavailableFeature Exception
|
||||
$this->maniaControl->getErrorHandler()->triggerDebugNotice("Exception line 330 Server.php" . $e->getMessage());
|
||||
Logger::logError("Couldn't get validation replay of '{$login}'. " . $e->getMessage());
|
||||
return null;
|
||||
|
@ -23,6 +23,7 @@ class FaultException extends Exception {
|
||||
case 'No replay to save':
|
||||
case 'Internal error.':
|
||||
case 'Unable to retrieve validation data. ':
|
||||
case 'No new replay.':
|
||||
return new UnavailableFeatureException($faultString, $faultCode);
|
||||
case 'You must enable the callbacks to be able to do chat routing.':
|
||||
case 'Chat routing not enabled.':
|
||||
|
@ -54,6 +54,7 @@ class DedimaniaWebHandler implements TimerListener {
|
||||
if (!$data || $error) {
|
||||
Logger::logError("Dedimania Error while opening session: '{$error}' Line 42");
|
||||
}
|
||||
|
||||
|
||||
$data = $this->decode($data);
|
||||
if (!is_array($data) || empty($data)) {
|
||||
|
Loading…
Reference in New Issue
Block a user