File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
app/code/Magento/Catalog/Controller/Adminhtml/Product Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 8
8
9
9
namespace Magento \Catalog \Controller \Adminhtml \Product ;
10
10
11
- use Magento \Framework \App \Action \HttpPostActionInterface as HttpPostActionInterface ;
12
- use Magento \Framework \Controller \ResultFactory ;
13
11
use Magento \Backend \App \Action \Context ;
14
- use Magento \Ui \Component \MassAction \Filter ;
15
- use Magento \Catalog \Model \ResourceModel \Product \CollectionFactory ;
16
12
use Magento \Catalog \Api \ProductRepositoryInterface ;
17
- use Magento \Framework \Exception \CouldNotSaveException ;
18
- use Magento \Framework \Exception \StateException ;
13
+ use Magento \Catalog \Model \ResourceModel \Product \CollectionFactory ;
14
+ use Magento \Framework \App \Action \HttpPostActionInterface as HttpPostActionInterface ;
15
+ use Magento \Framework \Controller \ResultFactory ;
19
16
use Magento \Framework \Exception \LocalizedException ;
17
+ use Magento \Ui \Component \MassAction \Filter ;
20
18
use Psr \Log \LoggerInterface ;
21
19
22
20
/**
@@ -87,11 +85,8 @@ public function execute()
87
85
$ this ->productRepository ->delete ($ product );
88
86
$ productDeleted ++;
89
87
} catch (LocalizedException $ exception ) {
90
- $ this ->messageManager ->addErrorMessage ((string )$ exception ); /** @FIXME Temporary for Debugging purposes */
91
88
$ this ->logger ->error ($ exception ->getLogMessage ());
92
89
$ productDeletedError ++;
93
- } catch (\Exception $ e ) {
94
- $ this ->messageManager ->addErrorMessage ((string )$ e ); /** @FIXME Temporary for Debugging purposes */
95
90
}
96
91
}
97
92
You can’t perform that action at this time.
0 commit comments