Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add better filter error message for string instead of array. #461

Merged
merged 3 commits into from
Aug 28, 2023

Conversation

u9g
Copy link
Contributor

@u9g u9g commented Aug 27, 2023

This is a common mistake for me so I can only imagine how many beginners fall into this trap, let's give a gentler error message for this case.

Example of the new error message: Directive @filter received a string instead of a list. Did you mean to put '@filter(op: "!=", value: ["$empty_string"])' instead?

@u9g u9g changed the title Add better filter error message for value instead of array. Add better filter error message for string instead of array. Aug 27, 2023
@u9g u9g marked this pull request as ready for review August 27, 2023 23:51
@obi1kenobi obi1kenobi added the A-errors Area: external-facing error functionality label Aug 27, 2023
@obi1kenobi obi1kenobi merged commit 8bd54e0 into obi1kenobi:main Aug 28, 2023
@u9g u9g deleted the add-better-filter-error branch August 28, 2023 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-errors Area: external-facing error functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants