Skip to content
Snippets Groups Projects
Commit 038dce9f authored by Ji Lu's avatar Ji Lu Committed by Arkadii Chyzhov
Browse files

MAGETWO-35879: Changed to use LocalizedException in Currency Symbol FetchRates

parent cc6ec2ba
No related merge requests found
......@@ -22,7 +22,7 @@ class FetchRates extends \Magento\CurrencySymbol\Controller\Adminhtml\System\Cur
$service = $this->getRequest()->getParam('rate_services');
$this->_getSession()->setCurrencyRateService($service);
if (!$service) {
throw new \Exception(__('Please specify a correct Import Service.'));
throw new \Magento\Framework\Exception\LocalizedException(__('Please specify a correct Import Service.'));
}
try {
/** @var \Magento\Directory\Model\Currency\Import\ImportInterface $importModel */
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment