chore(grunt): grunt should error when doc generation grunt errors

This commit is contained in:
Julie
2014-02-14 15:12:15 -08:00
committed by Peter Bacon Darwin
parent 3655d3ffbe
commit 4ee35287f0
+4 -1
View File
@@ -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');
}
});