diff options
| author | Julie | 2014-02-14 15:12:15 -0800 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 19:03:44 +0000 |
| commit | 4ee35287f0f405bff03d766539f8dfea28ae38c7 (patch) | |
| tree | c2442f2587e13c50e9bca71de7e1f63175e049b5 /lib | |
| parent | 3655d3ffbe36c5c8e82b566106cb623c1d63b3c6 (diff) | |
| download | angular.js-4ee35287f0f405bff03d766539f8dfea28ae38c7.tar.bz2 | |
chore(grunt): grunt should error when doc generation grunt errors
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/grunt/plugins.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/grunt/plugins.js b/lib/grunt/plugins.js index 56836aae..87c4719b 100644 --- a/lib/grunt/plugins.js +++ b/lib/grunt/plugins.js @@ -35,7 +35,10 @@ module.exports = function(grunt) { grunt.registerTask('docs', 'create angular docs', function(){ - shelljs.exec('node_modules/gulp/bin/gulp.js --gulpfile docs/gulpfile.js'); + var gruntProc = shelljs.exec('node_modules/gulp/bin/gulp.js --gulpfile docs/gulpfile.js'); + if (gruntProc.code !== 0) { + throw new Error('doc generation failed'); + } }); |
