mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Catch error when downloading install package
This commit is contained in:
parent
989bb48596
commit
34ea03c36a
@ -154,8 +154,17 @@ namespace MediaBrowser.Installer
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Download
|
// Download
|
||||||
|
string archive = null;
|
||||||
lblStatus.Content = string.Format("Downloading {0} (version {1})...", FriendlyName, version.versionStr);
|
lblStatus.Content = string.Format("Downloading {0} (version {1})...", FriendlyName, version.versionStr);
|
||||||
var archive = await DownloadPackage(version);
|
try
|
||||||
|
{
|
||||||
|
archive = await DownloadPackage(version);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
SystemClose("Error Downloading Package - " + e.GetType().FullName + "\n\n" + e.Message);
|
||||||
|
}
|
||||||
|
|
||||||
dlAnimation.StopAnimation();
|
dlAnimation.StopAnimation();
|
||||||
prgProgress.Visibility = btnCancel.Visibility = Visibility.Hidden;
|
prgProgress.Visibility = btnCancel.Visibility = Visibility.Hidden;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user