mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
javac error message fixes in requirements check (#619)
- fix download link - put download link on its own line - no punctuation at the end of the download link (fixes #618) - no extra newline at the end - extra newline spacing in case JAVA_HOME is invalid
This commit is contained in:
parent
634f92efb6
commit
e41fbc5708
6
bin/templates/cordova/lib/check_reqs.js
vendored
6
bin/templates/cordova/lib/check_reqs.js
vendored
@ -204,9 +204,11 @@ module.exports.check_java = function () {
|
|||||||
}, () => {
|
}, () => {
|
||||||
var msg =
|
var msg =
|
||||||
'Failed to run "javac -version", make sure that you have a JDK installed.\n' +
|
'Failed to run "javac -version", make sure that you have a JDK installed.\n' +
|
||||||
'You can get it from: http://www.oracle.com/technetwork/java/javase/downloads.\n';
|
'You can get it from the following location:\n' +
|
||||||
|
'https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html';
|
||||||
if (process.env['JAVA_HOME']) {
|
if (process.env['JAVA_HOME']) {
|
||||||
msg += 'Your JAVA_HOME is invalid: ' + process.env['JAVA_HOME'] + '\n';
|
msg += '\n\n';
|
||||||
|
msg += 'Your JAVA_HOME is invalid: ' + process.env['JAVA_HOME'];
|
||||||
}
|
}
|
||||||
throw new CordovaError(msg);
|
throw new CordovaError(msg);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user