diff options
Diffstat (limited to 'lib/grunt')
| -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'); + } }); |
