Skip to content

[Question] error handling Boolean vs function #64

@phoshenwen

Description

@phoshenwen

Could someone please explain to me the difference between using the default true Boolean for the error hander, versus using something like:

	.pipe(
		plumber({
			errorHandler: function (err) {
				console.log(err);
				this.emit('end');
			},
		}),
	)

which attaches the function to stream on('error') ? The only difference in the package that I can see is that the above includes this.emit('end').

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions