Descriptive error and suggest fix for unknown curve during node startup

This commit is contained in:
Konstantinos Chalkias 2017-06-06 17:24:17 +03:00 committed by Katarzyna Streich
parent 1a47d60209
commit 60efce8f87

View File

@ -166,7 +166,11 @@ fun main(args: Array<String>) {
}
node.run()
} catch (e: Exception) {
log.error("Exception during node startup", e)
if (e.message!!.startsWith("Unknown named curve:")) {
log.error("Exception during node startup - ${e.message}. " +
"This is a known OpenJDK issue on some Linux distributions, please use OpenJDK from zulu.org or Oracle JDK.")
} else
log.error("Exception during node startup", e)
exitProcess(1)
}