synchronizer->synchronize(); $this->messageManager->addSuccessMessage(__( 'Synchronized %1 Lingxing type 3 warehouses. Magento Inventory Sources were not created or changed.', $result['warehouses'] )); } catch (\Throwable $exception) { $this->messageManager->addErrorMessage(__('Warehouse synchronization failed: %1', $exception->getMessage())); } return $this->resultRedirectFactory->create()->setPath('*/*/index'); } }