fixed exception

This commit is contained in:
kremsy 2014-04-20 15:47:35 +02:00 committed by Steffen Schröder
parent 154ed55908
commit 93605de685

View File

@ -169,15 +169,12 @@ class ScriptSettings implements ConfiguratorMenu, CallbackListener {
try { try {
$scriptInfo = $this->maniaControl->client->getModeScriptInfo(); $scriptInfo = $this->maniaControl->client->getModeScriptInfo();
} catch(Exception $e) { } catch(NotInScriptModeException $e) {
if ($e->getMessage() == 'Not in script mode.') {
$label = new Label(); $label = new Label();
$frame->add($label); $frame->add($label);
$label->setText($e->getMessage()); $label->setText($e->getMessage());
return $frame; return $frame;
} }
throw $e;
}
$scriptParams = $scriptInfo->paramDescs; $scriptParams = $scriptInfo->paramDescs;