From 9a323226e37c8b2381da4a1c6671cda41f65c2a8 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 3 Mar 2017 18:09:00 +0900 Subject: [PATCH] Log errors with updating. --- osu.Desktop/Overlays/VersionManager.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/osu.Desktop/Overlays/VersionManager.cs b/osu.Desktop/Overlays/VersionManager.cs index aff8bb0d7b66..08bf6d15a76c 100644 --- a/osu.Desktop/Overlays/VersionManager.cs +++ b/osu.Desktop/Overlays/VersionManager.cs @@ -18,6 +18,7 @@ using OpenTK; using OpenTK.Graphics; using System.Net.Http; +using osu.Framework.Logging; namespace osu.Desktop.Overlays { @@ -159,15 +160,21 @@ private async void checkForUpdateAsync(bool useDeltaPatching = true, UpdateProgr Schedule(() => notification.State = ProgressNotificationState.Completed); } - catch (Exception) + catch (Exception e) { if (useDeltaPatching) { + Logger.Error(e, @"delta patching failed!"); + //could fail if deltas are unavailable for full update path (https://github.com/Squirrel/Squirrel.Windows/issues/959) //try again without deltas. checkForUpdateAsync(false, notification); scheduleRetry = false; } + else + { + Logger.Error(e, @"update failed!"); + } } } catch (HttpRequestException)