minor thingys

This commit is contained in:
kremsy authored and Steffen Schröder committed 2014-05-01 17:35:00 +02:00
1 parent 90124a4c9a
commit a69d5d0f84
3 files changed
+6 -5

No files matched your search

+1 -3
View File
@@ -11,7 +11,6 @@ use ManiaControl\Admin\AuthenticationManager;
use ManiaControl\Formatter;
use ManiaControl\ManiaControl;
use ManiaControl\Manialinks\ManialinkManager;
use Maniaplanet\DedicatedServer\InvalidArgumentException;
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
/**
@@ -185,9 +184,8 @@ class PlayerActions {
// Free player slot
try {
$this->maniaControl->client->spectatorReleasePlayerSlot($target->login);
} catch(InvalidArgumentException $e) {
} catch(Exception $e) {
//TODO error message from $e
$this->maniaControl->chat->sendError('Error occurred: ' . $this->maniaControl->getClientErrorText(), $admin->login);
}
}
}