aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2013-02-28 14:29:55 -0500
committerEric Reed <ebr@mediabrowser3.com>2013-02-28 14:29:55 -0500
commit34ea03c36a567998ad0964e0824bcf706a578c84 (patch)
treeb9add161c2dc0332ec715278dff7e5321686ca70
parent989bb48596664313df15dc67d43dc5a174562dcd (diff)
Catch error when downloading install package
-rw-r--r--MediaBrowser.Installer/MainWindow.xaml.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/MediaBrowser.Installer/MainWindow.xaml.cs b/MediaBrowser.Installer/MainWindow.xaml.cs
index abcf3a169..63e1f5dbd 100644
--- a/MediaBrowser.Installer/MainWindow.xaml.cs
+++ b/MediaBrowser.Installer/MainWindow.xaml.cs
@@ -154,8 +154,17 @@ namespace MediaBrowser.Installer
}
// Download
+ string archive = null;
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();
prgProgress.Visibility = btnCancel.Visibility = Visibility.Hidden;