When running a command that doesn't exist, no error callback is generated and the task exits abruptly.
For example,
gulp.task('runme', function(cb) {
new $.run.Command('nonexistant').exec(functioen (err) {
console.log('This is where I'm supposed to tell you that I do not exist', err);
cb(err);
});
});
It would be useful to inform the user that the command/binary that is to be run is not installed in the system and raise a non-zero error status (like POSIX sh standard, 127).
When running a command that doesn't exist, no error callback is generated and the task exits abruptly.
For example,
Running
gulp runme
just outputs:And ends silently with status 0.
It would be useful to inform the user that the command/binary that is to be run is not installed in the system and raise a non-zero error status (like POSIX
sh
standard, 127).