Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gulp 4: Handling errors without breaking watch #784

Closed
darsain opened this issue Nov 21, 2014 · 2 comments
Closed

Gulp 4: Handling errors without breaking watch #784

darsain opened this issue Nov 21, 2014 · 2 comments

Comments

@darsain
Copy link
Contributor

darsain commented Nov 21, 2014

For all types of tasks that:

  1. Return a stream.
  2. Return a promise.
  3. Use a callback.

should we just (as documented):

  1. Bind error handlers - doesn't break watch.
  2. Reject with error object. - dunno if breaks, haven't used yet.
  3. Pass error object as 1st argument - breaks watch.

and let gulp handle it in a future?

Or is there a special error treatment required to not break watchers? If so, please document it for each type of task.

@ilanbiala
Copy link

I see this issue come up when I am changing files and node-sass is watching through Gulp, and suddenly gulp.watch errors and closes.

@yocontra
Copy link
Member

Closing, this is a duplicate of #359

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants