Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 027fc29

Browse files
Wishlist error message (#8362)
* wishlist error message * wishlist-suggested-changes * Update add-products-to-wishlist.md * Update remove-products-from-wishlist.md * Update update-products-in-wishlist.md Co-authored-by: Kevin Harper <[email protected]>
1 parent 2c23e30 commit 027fc29

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

src/guides/v2.4/graphql/mutations/add-products-to-wishlist.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,10 @@ Attribute | Data Type | Description
224224
### WishListUserInputError attributes {#WishListUserInputError}
225225

226226
{% include graphql/wishlist-user-input-errors.md %}
227+
228+
## Errors
229+
230+
Error | Description
231+
--- | ---
232+
`The current user cannot perform operations on wishlist` | An unauthorized user (guest) tried to add an item to a wishlist, or an authorized user (customer) tried to add an item to a wishlist belonging to another customer.
233+
`The wishlist was not found.` | The value provided in the `wishlistId` field is invalid or does not exist for the customer.

src/guides/v2.4/graphql/mutations/remove-products-from-wishlist.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,10 @@ Attribute | Data Type | Description
148148
### WishListUserInputError attributes {#WishListUserInputError}
149149

150150
{% include graphql/wishlist-user-input-errors.md %}
151+
152+
## Errors
153+
154+
Error | Description
155+
--- | ---
156+
`The current user cannot perform operations on wishlist` | An unauthorized user (guest) tried to add an item to a wishlist, or an authorized user (customer) tried to add an item to a wishlist of another customer.
157+
`The wishlist was not found.` | The value provided in the `wishlistId` field is invalid or does not exist for the customer.

src/guides/v2.4/graphql/mutations/update-products-in-wishlist.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,10 @@ Attribute | Data Type | Description
207207
### WishListUserInputError attributes {#WishListUserInputError}
208208

209209
{% include graphql/wishlist-user-input-errors.md %}
210+
211+
## Errors
212+
213+
Error | Description
214+
--- | ---
215+
`The current user cannot perform operations on wishlist` | An unauthorized user (guest) tried to add an item to a wishlist, or an authorized user (customer) tried to add an item to a wishlist of another customer.
216+
`The wishlist was not found.` | The value provifed in the `wishlistId` field is invalid or does not exist for the customer.

0 commit comments

Comments
 (0)