Skip to content

Connection errors don't propagate to Query callback #25

@allenc256

Description

@allenc256

Looking at query.coffee, it looks like if the underlying connection emits an 'error' event (e.g., because of network connectivity issues), the error event never makes it to the callback on Query. Is this intentional?

Basically, I'm using the callback API and was expecting this to catch all errors, but it isn't. My workaround is to also add a listener on 'error' to the connection, but seems like the API would be nicer if users didn't have to do this ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions