Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Provide informative error message in case of unknown suggestion context. #24241
At present providing unknown context in a suggestion context query does not provide informative error message.
Executing the above query will show error message as below
"Unknown context name[product_brand], must be one of 3"
This error message is not very informative as it only convey the number of context supported. However printing all the accepted contexts will be more informative, like below:
"Unknown context name[product_brand], must be one of [product_size, product_color, product_type]"
This pull request fixes the issue mentioned.
I left a minor thing but it makes sense to me. If you'll make the change I can see about merging.