mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +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(),
|
||||
|
|
|
@ -249,4 +249,4 @@ java.launcher.module.error4=\
|
|||
{0} not found
|
||||
java.launcher.module.error5=\
|
||||
Error: Unable to initialize main class {0} in module {1}\n\
|
||||
Caused by: {1}: {2}
|
||||
Caused by: {2}: {3}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue