mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 00:04:05 +02:00
parent
5304be4ec0
commit
ab109ab626
@ -160,7 +160,17 @@ class SyncruleController extends ActionController
|
||||
$this->tabs(new SyncRuleTabs($rule))->activate('preview');
|
||||
$this->addTitle('Sync Preview');
|
||||
$sync = new Sync($rule);
|
||||
$modifications = $sync->getExpectedModifications();
|
||||
try {
|
||||
$modifications = $sync->getExpectedModifications();
|
||||
} catch (\Exception $e) {
|
||||
$this->content()->add(
|
||||
Html::tag('p', [
|
||||
'class' => 'error'
|
||||
], $e->getMessage())
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (empty($modifications)) {
|
||||
$this->content()->add(Html::tag('p', [
|
||||
|
Loading…
x
Reference in New Issue
Block a user