File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
app/code/Magento/CatalogImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,6 @@ public function move($fileName, $renameFileOff = false)
198
198
* @param string $url
199
199
* @param string $driver
200
200
* @return string
201
- * @throws \Magento\Framework\Exception\FileSystemException
202
201
* @throws \Magento\Framework\Exception\LocalizedException
203
202
*/
204
203
private function downloadFileFromUrl ($ url , $ driver )
@@ -270,7 +269,7 @@ protected function _readFileInfo($filePath)
270
269
* Validate uploaded file by type and etc.
271
270
*
272
271
* @return void
273
- * @throws \Exception
272
+ * @throws \Magento\Framework\ Exception\LocalizedException
274
273
*/
275
274
protected function _validateFile ()
276
275
{
@@ -283,7 +282,7 @@ protected function _validateFile()
283
282
284
283
$ fileExtension = pathinfo ($ filePath , PATHINFO_EXTENSION );
285
284
if (!$ this ->checkAllowedExtension ($ fileExtension )) {
286
- throw new \Magento \Framework \Exception \LocalizedException ('Disallowed file type. ' );
285
+ throw new \Magento \Framework \Exception \LocalizedException (__ ( 'Disallowed file type. ' ) );
287
286
}
288
287
//run validate callbacks
289
288
foreach ($ this ->_validateCallbacks as $ params ) {
You can’t perform that action at this time.
0 commit comments