Skip to content

Commit 8c4bcf6

Browse files
committed
MC-19432: REST API returns 404 error instead of 400
1 parent d01976a commit 8c4bcf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Quote/Model/Quote/Item/Repository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function save(\Magento\Quote\Api\Data\CartItemInterface $cartItem)
9595
$cartId = $cartItem->getQuoteId();
9696
if (!$cartId) {
9797
throw new InputException(
98-
__('"%fieldName" is required. Enter and try again.', ['fieldName' => 'cartId'])
98+
__('"%fieldName" is required. Enter and try again.', ['fieldName' => 'quoteId'])
9999
);
100100
}
101101

0 commit comments

Comments
 (0)