From 4ee35287f0f405bff03d766539f8dfea28ae38c7 Mon Sep 17 00:00:00 2001 From: Julie Date: Fri, 14 Feb 2014 15:12:15 -0800 Subject: chore(grunt): grunt should error when doc generation grunt errors --- lib/grunt/plugins.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') 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'); + } }); -- cgit v1.2.3