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

feat: do not override ClientSafe exception with CoercionError #1624

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

simPod
Copy link
Collaborator

@simPod simPod commented Oct 30, 2024

When ClientSafe exception is thrown during parseValue, it is overriden by CoercionError. Therefore, the actual error message is not propagated to the caller. This allows propagating not only GraphQL\Error\Error but also ClientSafe exceptions.

@simPod simPod requested a review from spawnia October 30, 2024 15:29
src/Utils/Value.php Outdated Show resolved Hide resolved
tests/Utils/CoerceInputValueTest.php Outdated Show resolved Hide resolved
@simPod simPod requested a review from spawnia October 31, 2024 12:06
@spawnia spawnia merged commit 3365eaf into webonyx:master Oct 31, 2024
15 checks passed
@spawnia
Copy link
Collaborator

spawnia commented Oct 31, 2024

@simPod simPod deleted the error branch October 31, 2024 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants