We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a96bd61 commit fc3b4a3Copy full SHA for fc3b4a3
app/code/Magento/ImportExport/Controller/Adminhtml/Import/Validate.php
@@ -48,8 +48,10 @@ public function execute()
48
$data[$import::FIELD_FIELD_SEPARATOR]
49
);
50
$this->processValidationResult($import->validateSource($source), $resultBlock);
51
+ } catch (\Magento\Framework\Exception\LocalizedException $e) {
52
+ $resultBlock->addError($e->getMessage());
53
} catch (\Exception $e) {
- $resultBlock->addError(__($e->getMessage()));
54
+ $resultBlock->addError(__('Sorry, but the data is invalid or the file is not uploaded.'));
55
}
56
return $resultLayout;
57
} elseif ($this->getRequest()->isPost() && empty($_FILES)) {
0 commit comments