Skip to content

Commit b6839aa

Browse files
committed
MC-32270: Cart.applied_gift_cards resolver exception message thrown when removing an item from cart need to be refactored
- Added code fix changes
1 parent 85a5e19 commit b6839aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/QuoteGraphQl/Model/Resolver/RemoveItemFromCart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
6767
} catch (NoSuchEntityException $e) {
6868
throw new GraphQlNoSuchEntityException(__('The Cart doesn\'t contain the item.'));
6969
} catch (LocalizedException $e) {
70-
throw new GraphQlInputException(__($e->getMessage()));
70+
throw new GraphQlInputException(__($e->getMessage()), $e);
7171
}
7272

7373
return [

0 commit comments

Comments
 (0)