absinthe-graphql / absinthe-socket

Core JavaScript support for Absinthe WS-based operations
MIT License
149 stars 75 forks source link

Attach request error object #51

Closed ademola-raimi closed 3 years ago

ademola-raimi commented 4 years ago

This PR is for fixing the stringify error object. For majority users like me, the error is not useful because I want to be able to read the object and display a user-friendly error. This PR also make sure to retain the stringify error.

If you need the stringify error, it works the same, just do error.message which gives request: [Object object] If you need the error object, just do error.object

arjan commented 3 years ago

Please can somebody merge this and bake a new release? 🙏 Working around this error has been driving me crazy for months.

alexandrchebotar commented 2 years ago

@tlvenn could you please make a release? Almost a year has passed... :disappointed: