Fix[downloader]: add description for not being able to unpack JRE 17

This commit is contained in:
artdeell 2023-11-08 23:38:06 +03:00
parent d5f74af94a
commit 0341457539
2 changed files with 2 additions and 1 deletions

View File

@ -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 {

View File

@ -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>