diff --git a/lib/src/index.js b/lib/src/index.js index 9768b444..8cd13ac2 100644 --- a/lib/src/index.js +++ b/lib/src/index.js @@ -61,6 +61,7 @@ function src(glob, opt) { outputStream = outputStream .pipe(sourcemaps.init({loadMaps: true})); } + globStream.on('error', outputStream.emit.bind(outputStream, 'error')); return outputStream; }