diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/tasks/AsyncMinecraftDownloader.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/tasks/AsyncMinecraftDownloader.java index 2eb7af097..dd688b69f 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/tasks/AsyncMinecraftDownloader.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/tasks/AsyncMinecraftDownloader.java @@ -93,7 +93,7 @@ public class AsyncMinecraftDownloader { // THIS one function need the activity in the case of an error if(activity != null && !JRE17Util.installNewJreIfNeeded(activity, verInfo)){ ProgressLayout.clearProgress(ProgressLayout.DOWNLOAD_MINECRAFT); - throw new DownloaderException(); + throw new DownloaderException(new Exception(activity.getString(R.string.exception_failed_to_unpack_jre17))); } try { diff --git a/app_pojavlauncher/src/main/res/values/strings.xml b/app_pojavlauncher/src/main/res/values/strings.xml index d4219c670..cef687cfb 100644 --- a/app_pojavlauncher/src/main/res/values/strings.xml +++ b/app_pojavlauncher/src/main/res/values/strings.xml @@ -364,4 +364,5 @@ You can always change your mind later by going into Settings Allow notifications Click to re-request the notification permission, required for game/modpack background downloads to work properly. + Failed to install JRE 17