Skip to content

Commit f30fc3a

Browse files
committed
Docs: Clarify err usage
1 parent f9e3c49 commit f30fc3a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/recipes/running-tasks-in-series.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ So this example would look like:
1717
var gulp = require('gulp');
1818

1919
// takes in a callback so the engine knows when it'll be done
20-
gulp.task('one', function(cb) {
20+
gulp.task('one', function (cb) {
2121
// do stuff -- async or otherwise
22-
cb(err); // if err is not null and not undefined, the orchestration will stop, and 'two' will not run
22+
fs.writeFile('filename', 'data', opts, function (err) {
23+
cb(err); // if err is not null and not undefined, the orchestration will stop, and 'two' will not run
24+
});
2325
});
2426

2527
// identifies a dependent task must be complete before this one begins

0 commit comments

Comments
 (0)