From 7bad8c74e0ae4882e4f2b26855b5efed99df54d5 Mon Sep 17 00:00:00 2001 From: hinerm Date: Thu, 21 Nov 2024 12:53:22 -0600 Subject: [PATCH] Add some line breaks in the upgrade error message --- .../net/imagej/ui/swing/updater/LauncherMigrator.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/imagej/ui/swing/updater/LauncherMigrator.java b/src/main/java/net/imagej/ui/swing/updater/LauncherMigrator.java index 80cb104..ce9966d 100644 --- a/src/main/java/net/imagej/ui/swing/updater/LauncherMigrator.java +++ b/src/main/java/net/imagej/ui/swing/updater/LauncherMigrator.java @@ -368,14 +368,14 @@ private void switchToNewLauncher() { if (log != null) { Path cfgPath = appDir.toPath().resolve( Paths.get("config", "jaunch", appSlug + ".cfg")); - log.warn("Congratulations on upgrading Java. Unfortunately, " + + log.warn("Congratulations on upgrading Java.\n\tUnfortunately, " + "the Java version chosen by the new launcher after the upgrade " + "is " + nljv + ", which is still less than the recommended Java " + - "version of " + Java.recommendedVersion() + ". This should not " + - "be the case of course; it seems to be a bug. Would you please " + - "visit https://forum.image.sc/ and report this problem? Click " + + "version of " + Java.recommendedVersion() + ".\n\tThis should not " + + "be the case of course; it seems to be a bug.\n\tWould you please " + + "visit https://forum.image.sc/ and report this problem?\n\tClick " + "'New Topic', choose 'Usage & Issues' category, and use tag '" + - appSlug + "'. To fix it locally for now, you can try editing the " + + appSlug + "'.\n\tTo fix it locally for now, you can try editing the " + cfgPath + " file by hand to point to a newer Java installation."); } return;