co-exec icon indicating copy to clipboard operation
co-exec copied to clipboard

request: access to stderr

Open shellscape opened this issue 11 years ago • 6 comments

It would be great to have access to stderr as well as stdout. Off the cuff, https://github.com/visionmedia/co-exec/blob/master/index.js#L15 could be changed to return an object containing both stdout and stderr.

shellscape avatar Sep 17 '14 12:09 shellscape

+1

ianstormtaylor avatar Oct 04 '14 21:10 ianstormtaylor

SGTM

tj avatar Oct 07 '14 23:10 tj

@visionmedia not familiar with that acronym.

shellscape avatar Oct 08 '14 03:10 shellscape

sounds good to me :D. If you're interested in sending a pull request with test tweaks that would be awesome

tj avatar Oct 08 '14 04:10 tj

I looked into it, but ended up thinking it might not be a good idea, since I figured that stderr and err are often linked, and then you can't really try/catch nicely anymore? But I may have overlooked something really obvious haha

On Wed, Oct 8, 2014 at 12:10 AM, TJ Holowaychuk [email protected] wrote:

sounds good to me :D. If you're interested in sending a pull request with test tweaks that would be awesome

— Reply to this email directly or view it on GitHub https://github.com/visionmedia/co-exec/issues/6#issuecomment-58305922.

ianstormtaylor avatar Oct 09 '14 03:10 ianstormtaylor

I thought node used stderr or the error message, although you can have stderr for a program that exits successfully as well so it does make sense to separate them. In the case of this sort of utility that's probably not too helpful though, especially since it's a few lines :D haha

tj avatar Oct 09 '14 04:10 tj