Skip to content

Commit

Permalink
Msi 2182 source entity expansion with pickup location attributes.
Browse files Browse the repository at this point in the history
LocalizedException -> InvalidArgumentException
  • Loading branch information
Maksym Novik committed May 23, 2019
1 parent 28c8dda commit 2aa38ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 3 additions & 6 deletions app/code/Magento/InventoryInStorePickupApi/Model/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

namespace Magento\InventoryInStorePickupApi\Model;

use Magento\Framework\Exception\LocalizedException;
use Magento\InventoryApi\Api\Data\SourceInterface;
use Magento\InventoryInStorePickupApi\Api\Data\PickupLocationInterface;
use Magento\InventoryInStorePickupApi\Model\Mapper\CreateFromSourceInterface;
Expand Down Expand Up @@ -55,11 +54,9 @@ public function __construct(

foreach ($preProcessors as $preProcessor) {
if (!$preProcessor instanceof PreProcessorInterface) {
throw new LocalizedException(
__(
'Source Data PreProcessor must implement %1.',
PreProcessorInterface::class
)
throw new \InvalidArgumentException(
'Source Data PreProcessor must implement %1.',
PreProcessorInterface::class
);
}
}
Expand Down
1 change: 0 additions & 1 deletion app/code/Magento/InventoryInStorePickupApi/i18n/en_US.csv

This file was deleted.

0 comments on commit 2aa38ff

Please sign in to comment.