Skip to content

Commit

Permalink
Fix[downloader]: add description for not being able to unpack JRE 17
Browse files Browse the repository at this point in the history
  • Loading branch information
artdeell committed Nov 8, 2023
1 parent d5f74af commit 0341457
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private void downloadGame(Activity activity, JMinecraftVersionList.Version verIn
// 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 {
Expand Down
1 change: 1 addition & 0 deletions app_pojavlauncher/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -364,4 +364,5 @@
<string name="notification_permission_toast">You can always change your mind later by going into Settings</string>
<string name="preference_ask_for_notification_title">Allow notifications</string>
<string name="preference_ask_for_notification_description">Click to re-request the notification permission, required for game/modpack background downloads to work properly.</string>
<string name="exception_failed_to_unpack_jre17">Failed to install JRE 17</string>
</resources>

0 comments on commit 0341457

Please sign in to comment.