We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f0952d commit 88168d1Copy full SHA for 88168d1
findJavaHome.js
@@ -1,6 +1,6 @@
1
require('find-java-home')(function(err, home){
2
- if(err){
3
- console.error("[node-java] "+err);
+ if (err || !home) {
+ if (!err) err = Error('Unable to determine Java home location');
4
process.exit(1);
5
}
6
process.stdout.write(home);
0 commit comments