Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

better network error messages #7005

@tj

Description

@tj

I've brought this up before but I can't find the issue, or if/why it was denied, but anyway I think we could do a lot better with network related error reporting:

Error: connect ECONNREFUSED
    at errnoException (net.js:901:11)
    at Object.afterConnect [as oncomplete] (net.js:892:19)

isn't overly informative, it would be awesome if (when available) we tack on some information, host/port etc. It's easy to argue that when you receive the error you should be printing it or doing something with it in a way that makes the message more useful, but it certainly wouldn't hurt for cases where you just use a console.error(err.stack) etc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions