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

Fix normalize error paths #4

Merged

Conversation

wuarmin
Copy link
Contributor

@wuarmin wuarmin commented Jan 25, 2024

Hello 👋,
Thank you for continuing the project!
I have already placed this PR in the old repository and therefore now here, because in my opinion it would still be relevant.

I'm consuming a GraphQL-interface, which returns error-payloads like that:

{
      "data": null,
      "errors": [
        {
          "message": "error",
          "path": null
        }
      ]
}

This caused a NoMethodError: undefined method `each' for nil:NilClass
This PR would fix the behavior.

Thanks
best regards
Armin

@rmosolgo
Copy link
Collaborator

Hey, thanks for bringing this over here! I agree this would be a good improvement.

@rmosolgo rmosolgo added this to the 0.19.1 milestone Jan 25, 2024
@rmosolgo rmosolgo merged commit 0305911 into github-community-projects:master Jan 25, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants