OverZealous / run-sequence

Run a series of dependent gulp tasks in order
MIT License
962 stars 61 forks source link

Better error reporting #65

Closed VojtaStanek closed 8 years ago

VojtaStanek commented 8 years ago

Run-sequence is passing only some of the information from failed tasks. It would be better to pass whole e when creating PluginError

Maybe something like this:

var err = new gutil.PluginError('test', existingError, {showStack: true});

Source: gulp-utils readme file

OverZealous commented 8 years ago

If you pass the gulp callback to run-sequence as the final argument, it should get printed correctly.

Otherwise, I'll look at a PR, but this isn't a big enough issue that I'm going to fix it any time soon.

VojtaStanek commented 8 years ago

If I pass callback I get only in which task the error was, but not the message from the original error.