Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit fe91b7c

Browse files
Reducing error message
1 parent 0ce2a7c commit fe91b7c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/GitHub.Api/Primitives/Package.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public static Package Load(IEnvironment environment, UriString packageFeed)
3636
if (!feed.FileExists() || now.Date > environment.UserSettings.Get<DateTimeOffset>(key).Date)
3737
{
3838
feed = new DownloadTask(TaskManager.Instance.Token, environment.FileSystem, packageFeed, environment.UserCachePath)
39-
.Catch(e =>
39+
.Catch(ex =>
4040
{
41-
LogHelper.Trace(e, "Failed to download " + packageFeed);
41+
LogHelper.Warning(@"Error downloading package feed:{0} ""{1}"" Message:""{2}""", packageFeed, ex.GetType().ToString(), ex.Message);
4242
return true;
4343
})
4444
.RunWithReturn(true);

src/UnityExtension/Assets/Editor/GitHub.Unity/UpdateCheck.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ public class UpdateCheckWindow : EditorWindow
6161
public static void CheckForUpdates()
6262
{
6363
var download = new DownloadTask(TaskManager.Instance.Token, EntryPoint.Environment.FileSystem, UpdateFeedUrl, EntryPoint.Environment.UserCachePath)
64-
.Catch(e =>
64+
.Catch(ex =>
6565
{
66-
LogHelper.Trace(e, "Failed to download " + UpdateFeedUrl);
66+
LogHelper.Warning(@"Error downloading update check:{0} ""{1}"" Message:""{2}""", UpdateFeedUrl, ex.GetType().ToString(), ex.Message);
6767
return true;
6868
});
6969
download.OnEnd += (thisTask, result, success, exception) =>

0 commit comments

Comments
 (0)