parent
5304be4ec0
commit
ab109ab626
|
@ -160,7 +160,17 @@ class SyncruleController extends ActionController
|
||||||
$this->tabs(new SyncRuleTabs($rule))->activate('preview');
|
$this->tabs(new SyncRuleTabs($rule))->activate('preview');
|
||||||
$this->addTitle('Sync Preview');
|
$this->addTitle('Sync Preview');
|
||||||
$sync = new Sync($rule);
|
$sync = new Sync($rule);
|
||||||
|
try {
|
||||||
$modifications = $sync->getExpectedModifications();
|
$modifications = $sync->getExpectedModifications();
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
$this->content()->add(
|
||||||
|
Html::tag('p', [
|
||||||
|
'class' => 'error'
|
||||||
|
], $e->getMessage())
|
||||||
|
);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (empty($modifications)) {
|
if (empty($modifications)) {
|
||||||
$this->content()->add(Html::tag('p', [
|
$this->content()->add(Html::tag('p', [
|
||||||
|
|
Loading…
Reference in New Issue