Skip to content

Improve error message for duplicate constraints #8184

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

Open
cmeeren opened this issue Mar 26, 2025 · 1 comment
Open

Improve error message for duplicate constraints #8184

cmeeren opened this issue Mar 26, 2025 · 1 comment

Comments

@cmeeren
Copy link
Contributor

cmeeren commented Mar 26, 2025

Product

Hot Chocolate

Is your feature request related to a problem?

I often get error messages like this:

The specified directive `@myDirective` is unique and cannot be added twice. (My.Type)

The solution you'd like

Give me more information to go on, such as which field this applies to:

The specified directive `@myDirective` is unique and cannot be added twice. (My.Type.Property)

(Other better solutions may exist.)

Otherwise, if adding a large object with many properties, I have to spend an unnecessarily large amount of time hunting around to figure out where the error is.

@michaelstaib
Copy link
Member

I think the message should also be not repeatable instead of unique :)

@michaelstaib michaelstaib added this to the HC-15.2.0 milestone Mar 26, 2025
@glen-84 glen-84 modified the milestones: HC-15.2.0, HC-16.0.0 May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants