This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
add err.command on exec() failures #6796
Comments
Can you provide an example? |
contrived example but for stuff like this it may be nice to see if there's no stderr and then use the command as the message, or since that's sort of awkward it would at least be nice to have err.command so there's something to go on var exec = require('child_process').exec;
exec('cat /foo 2> /dev/null', function(err){
throw err;
});
|
indutny
added a commit
to indutny/node
that referenced
this issue
Jan 4, 2014
Report path to executable and argv on error, stderr is not enough in many cases. fix nodejs#6796
See ^ |
awesome! thanks man |
oh sorry thought that was master haha |
Well, I don't think that we can land it in v0.10. |
richardlau
pushed a commit
to ibmruntimes/node
that referenced
this issue
May 17, 2016
- **buffer**: fix lastIndexOf and indexOf in various edge cases (Anna Henningsen) [nodejs#6511](nodejs/node#6511) - **child_process**: use /system/bin/sh on android (Ben Noordhuis) [nodejs#6745](nodejs/node#6745) - **deps**: - upgrade npm to 3.8.9 (Rebecca Turner) [nodejs#6664](nodejs/node#6664) - upgrade to V8 5.0.71.47 (Ali Ijaz Sheikh) [nodejs#6572](nodejs/node#6572) - upgrade libuv to 1.9.1 (Saúl Ibarra Corretgé) [nodejs#6796](nodejs/node#6796) - Intl: ICU 57 bump (Steven R. Loomis) [nodejs#6088](nodejs/node#6088) - **repl**: - copying tabs shouldn't trigger completion (Eugene Obrezkov) [nodejs#5958](nodejs/node#5958) - exports `Recoverable` (Blake Embrey) [nodejs#3488](nodejs/node#3488) - **src**: add O_NOATIME constant (Rich Trott) [nodejs#6492](nodejs/node#6492) - **src,module**: add --preserve-symlinks command line flag (James M Snell) [nodejs#6537](nodejs/node#6537) - **util**: adhere to `noDeprecation` set at runtime (Anna Henningsen) [nodejs#6683](nodejs/node#6683)
richardlau
pushed a commit
to ibmruntimes/node
that referenced
this issue
May 18, 2016
- **buffer**: fix lastIndexOf and indexOf in various edge cases (Anna Henningsen) [nodejs#6511](nodejs/node#6511) - **child_process**: use /system/bin/sh on android (Ben Noordhuis) [nodejs#6745](nodejs/node#6745) - **deps**: - upgrade npm to 3.8.9 (Rebecca Turner) [nodejs#6664](nodejs/node#6664) - upgrade to V8 5.0.71.47 (Ali Ijaz Sheikh) [nodejs#6572](nodejs/node#6572) - upgrade libuv to 1.9.1 (Saúl Ibarra Corretgé) [nodejs#6796](nodejs/node#6796) - Intl: ICU 57 bump (Steven R. Loomis) [nodejs#6088](nodejs/node#6088) - **repl**: - copying tabs shouldn't trigger completion (Eugene Obrezkov) [nodejs#5958](nodejs/node#5958) - exports `Recoverable` (Blake Embrey) [nodejs#3488](nodejs/node#3488) - **src**: add O_NOATIME constant (Rich Trott) [nodejs#6492](nodejs/node#6492) - **src,module**: add --preserve-symlinks command line flag (James M Snell) [nodejs#6537](nodejs/node#6537) - **util**: adhere to `noDeprecation` set at runtime (Anna Henningsen) [nodejs#6683](nodejs/node#6683) As of this release the 6.X line now includes 64-bit binaries for Linux on Power Systems running in big endian mode in addition to the existing 64-bit binaries for running in little endian mode. PR-URL: nodejs/node#6810
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
sometimes you get these gems "Command failed:", would be nice to not have to manually augment the error
The text was updated successfully, but these errors were encountered: