mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8221368: Error message when module main class cannot be loaded is missing exception details
Reviewed-by: alanb, sundar
This commit is contained in:
parent
9f039257cb
commit
857b2e6271
5 changed files with 163 additions and 2 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue