Skip to content

Commit

Permalink
Fixes #34: JAVA_HOME check
Browse files Browse the repository at this point in the history
if JAVA_HOME is not set, there is just a non blocking error
  • Loading branch information
krampstudio committed May 25, 2013
1 parent 95b6b41 commit 1bda67c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tasks/jsdoc-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ module.exports = function jsDocTask(grunt) {

//check if java is set
if(!javaHome){
grunt.log.error("JAVA_HOME is not set, but java is required by jsdoc to run.");
grunt.fail.warn('Wrong installation/environnement', errorCode.generic);
grunt.log.error("JAVA_HOME is not set. Jsdoc requires Java to run.");
} else {
grunt.log.debug("JAVA_HOME : " + javaHome);
}
Expand Down

0 comments on commit 1bda67c

Please sign in to comment.