diff --git a/application/controllers/SyncruleController.php b/application/controllers/SyncruleController.php index 2d6c35ab..ec439f14 100644 --- a/application/controllers/SyncruleController.php +++ b/application/controllers/SyncruleController.php @@ -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', [