synchronizer->synchronize(); $this->messageManager->addSuccessMessage(__('Synchronized %1 Lingxing stores.', $count)); } catch (\Throwable $exception) { $this->messageManager->addErrorMessage(__('Store synchronization failed: %1', $exception->getMessage())); } return $this->resultRedirectFactory->create()->setPath('*/*/index'); } }