Skip to content

Commit da06802

Browse files
committed
Merge pull request #473 from magento-tango/MAGETWO-39986
[Tango] S56 - Bug Fixes
2 parents 3bd64f6 + 575bb83 commit da06802

File tree

2 files changed

+2
-2
lines changed
  • app/code/Magento/CatalogInventory/Model/Indexer/Stock/Action

2 files changed

+2
-2
lines changed

app/code/Magento/CatalogInventory/Model/Indexer/Stock/Action/Row.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

app/code/Magento/CatalogInventory/Model/Indexer/Stock/Action/Rows.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)