This issue is automatically created based on existing pull request: #40556: Fix: propagate stock validation message in QuantityValidator error info
Description (*)
- Fix missing error message when QuantityValidator reports a stock error that already has a stockStateResult with hasError = true
- Previously, addErrorInfo() was called without a message, causing silent errors in consumers like the GraphQL cart mutations
- Now propagates $stockResult->getMessage() with a fallback to the default "out of stock" message
Manual testing scenarios (*)
- Add an out-of-stock product to cart via GraphQL and verify the error response contains a descriptive message
- Verify standard storefront "out of stock" behavior is unchanged
- Run existing CatalogInventory unit/integration tests
Contribution checklist (*)