Skip to content

Commit 0bdb94e

Browse files
committed
MAGETWO-52011: Second error message is not displayed when adding product with two invalid file fields to the cart
1 parent 628687b commit 0bdb94e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/Product/Type/AbstractType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ protected function _prepareOptions(\Magento\Framework\DataObject $buyRequest, $p
582582
->setRequest($buyRequest)
583583
->setProcessMode($processMode)
584584
->validateUserValue($buyRequest->getOptions());
585-
} catch (\Exception $e) {
585+
} catch (LocalizedException $e) {
586586
$result[] = $e->getMessage();
587587
continue;
588588
}

0 commit comments

Comments
 (0)