File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/code/Magento/CatalogInventory/Model/Indexer/Stock/Action Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function execute($id = null)
3333 try {
3434 $ this ->_reindexRows ([$ id ]);
3535 } catch (\Exception $ e ) {
36- throw new \Magento \Framework \Exception \LocalizedException ($ e ->getMessage (), $ e -> getCode ( ), $ e );
36+ throw new \Magento \Framework \Exception \LocalizedException (__ ( $ e ->getMessage ()), $ e );
3737 }
3838 }
3939}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function execute($ids)
3333 try {
3434 $ this ->_reindexRows ($ ids );
3535 } catch (\Exception $ e ) {
36- throw new \Magento \Framework \Exception \LocalizedException ($ e ->getMessage (), $ e -> getCode ( ), $ e );
36+ throw new \Magento \Framework \Exception \LocalizedException (__ ( $ e ->getMessage ()), $ e );
3737 }
3838 }
3939}
You can’t perform that action at this time.
0 commit comments