Skip to content

Commit e413d83

Browse files
adampmossgelanivishal
authored andcommitted
Improve reporting of invalid country code message
1 parent 1023036 commit e413d83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/TaxImportExport/Model/Rate/CsvImportHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ protected function _importRate(array $rateData, array $regionsCache, array $stor
234234
$countryCode = $rateData[1];
235235
$country = $this->_countryFactory->create()->loadByCode($countryCode, 'iso2_code');
236236
if (!$country->getId()) {
237-
throw new \Magento\Framework\Exception\LocalizedException(__('One of the countries has invalid code.'));
237+
throw new \Magento\Framework\Exception\LocalizedException(__('Country code is invalid: %1', $countryCode));
238238
}
239239
$regionsCache = $this->_addCountryRegionsToCache($countryCode, $regionsCache);
240240

0 commit comments

Comments
 (0)