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

Commit c976669

Browse files
authored
Merge pull request #777 from github-for-unity/other-short-exceptions
Shortening a few more exception messages
2 parents 01a9209 + 7f60d02 commit c976669

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/GitHub.Api/Metrics/UsageTracker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private async Task SendUsage()
9595
}
9696
catch (Exception ex)
9797
{
98-
Logger.Warning(@"Error Sending Usage Exception Type:""{0}"" Message:""{1}""", ex.GetType().ToString(), ex.Message);
98+
Logger.Warning(@"Error Sending Usage Exception Type:""{0}"" Message:""{1}""", ex.GetType().ToString(), ex.GetExceptionMessageShort());
9999
}
100100
}
101101

src/GitHub.Api/Primitives/Package.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static Package Load(IEnvironment environment, UriString packageFeed)
3838
feed = new DownloadTask(TaskManager.Instance.Token, environment.FileSystem, packageFeed, environment.UserCachePath)
3939
.Catch(ex =>
4040
{
41-
LogHelper.Warning(@"Error downloading package feed:{0} ""{1}"" Message:""{2}""", packageFeed, ex.GetType().ToString(), ex.Message);
41+
LogHelper.Warning(@"Error downloading package feed:{0} ""{1}"" Message:""{2}""", packageFeed, ex.GetType().ToString(), ex.GetExceptionMessageShort());
4242
return true;
4343
})
4444
.RunWithReturn(true);

0 commit comments

Comments
 (0)