diff --git a/gulp/compile.js b/gulp/compile.js index 8dd1f98..8113478 100644 --- a/gulp/compile.js +++ b/gulp/compile.js @@ -41,10 +41,11 @@ var compile = function(cb, src) { externs: externs, output_wrapper: '(function(){%output%}).call(window);' } - }).on('error', function() { + }).on('error', function(err) { del([ 'visflow.js' ]); + cb(err); })); };