ServiceController: ignore command lookup errors

They can happen when an invalid command has been chosen
This commit is contained in:
Thomas Gelf 2016-11-18 19:54:47 +01:00
parent 14fce02448
commit 065205dc7a
1 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
namespace Icinga\Module\Director\Controllers;
use Icinga\Module\Director\Exception\NestingError;
use Exception;
use Icinga\Module\Director\Web\Controller\ObjectController;
use Icinga\Module\Director\Objects\IcingaServiceSet;
use Icinga\Module\Director\Objects\IcingaService;
@ -143,8 +143,8 @@ class ServiceController extends ObjectController
array('class' => 'icon-plus')
);
}
} catch (NestingError $nestingError) {
// ignore the error for the form
} catch (Exception $e) {
// ignore the error, show no apply link
}
}