8221368: Error message when module main class cannot be loaded is missing exception details

Reviewed-by: alanb, sundar
This commit is contained in:
Mandy Chung 2019-06-05 07:49:20 -07:00
parent 9f039257cb
commit 857b2e6271
5 changed files with 163 additions and 2 deletions

View file

@ -821,7 +821,7 @@ public final class LauncherHelper {
} catch (Throwable e) {
if (mainClass.getModule().isNamed()) {
abort(e, "java.launcher.module.error5",
mainClass.getName(), mainClass.getModule(),
mainClass.getName(), mainClass.getModule().getName(),
e.getClass().getName(), e.getLocalizedMessage());
} else {
abort(e, "java.launcher.cls.error7", mainClass.getName(),