What about building the message from the keys of the object passed to errnoException?


> On Mar 10, 2014, at 5:22 PM, Timothy J Fontaine <notifications@github.com> wrote:
> 
> In lib/net.js:
> 
> > @@ -769,7 +769,12 @@ function afterWrite(status, handle, req, err) {
> >    }
> >  
> >    if (status < 0) {
> > -    var ex = errnoException(status, 'write', err);
> > +    err = util.format('%s %s:%s', err || '', req.address, req.port);
> > +    var additions = {
> > +      address: req.address
> > +    };
> > +    if (req.port) additions.port = req.port;
> > +    var ex = errnoException(status, 'write', err, additions);
> We could filter out functions, I'm mostly just looking for a generic way for this to work without having to be too explicit at every callsite
> 
> —
> Reply to this email directly or view it on GitHub.