File: explain-failure.diff

package info (click to toggle)
node-gulp 4.0.2-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,716 kB
  • sloc: javascript: 13,511; makefile: 94; sh: 12
file content (19 lines) | stat: -rw-r--r-- 555 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Explain failure
 Due to vinyl-fs version, watch() function isn't available.
Author: Xavier Guimard <yadd@debian.org>
Bug-Debian: https://bugs.debian.org/862887
Forwarded: not-needed
Last-Update: 2019-02-13

--- a/index.js
+++ b/index.js
@@ -36,6 +36,9 @@
       'a function (optionally generated by using gulp.parallel ' +
       'or gulp.series)');
   }
+  if(!vfs.watch) {
+    throw Error("Gulp.watch is disabled in this version of gulp. See /usr/share/doc/gulp/README.Debian");
+  }
 
   if (typeof opt === 'function') {
     task = opt;