exception fixes

This commit is contained in:
kremsy
2014-05-08 21:10:56 +02:00
parent 696505769d
commit 3f7da59ae2
25 changed files with 14 additions and 34 deletions

View File

@ -25,6 +25,7 @@ use ManiaControl\Manialinks\ManialinkManager;
use ManiaControl\Manialinks\ManialinkPageAnswerListener;
use ManiaControl\Players\Player;
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
use Maniaplanet\DedicatedServer\Xmlrpc\NextMapException;
use MCTeam\CustomVotesPlugin;
use MCTeam\KarmaPlugin;
@ -633,11 +634,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
try {
$index = $self->maniaControl->mapManager->getMapIndex($map);
$self->maniaControl->client->jumpToMapIndex($index);
} catch (Exception $e) {
// TODO temp added 19.04.2014
$self->maniaControl->errorHandler->triggerDebugNotice("Exception line 557 MapList.php" . $e->getMessage());
$self->maniaControl->chat->sendError("Error while Switching Map");
} catch (NextMapException $e) {
}
});
break;