Skip to content

Commit

Permalink
Update ShippingAddressManagement.php
Browse files Browse the repository at this point in the history
Added missing __() wrap on execption. Without it a new exception is thrown: PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Magento\Framework\Exception\InputException::__construct() must be an instance of Magento\Framework\Phrase, string given
  • Loading branch information
ericrisler authored Feb 8, 2017
1 parent 24cd0c3 commit 49aef35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Quote/Model/ShippingAddressManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function assign($cartId, \Magento\Quote\Api\Data\AddressInterface $addres
$address->setCollectShippingRates(true);

if (!$quote->validateMinimumAmount($quote->getIsMultiShipping())) {
throw new InputException($this->getMinimumAmountErrorMessage()->getMessage());
throw new InputException(__($this->getMinimumAmountErrorMessage()->getMessage()));
}

try {
Expand Down

0 comments on commit 49aef35

Please sign in to comment.