Skip to content

Commit 0d1d93c

Browse files
Merge pull request #617 from solidify/feature/improve-error-handling-and-logging
Feature/improve error handling and logging
2 parents 9e4cbe1 + 83d1eaf commit 0d1d93c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/WorkItemMigrator/WorkItemImport/WitClient/WitClientUtils.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,11 @@ public void SaveWorkItemFields(WorkItem wi)
519519
}
520520
catch (AggregateException ex)
521521
{
522-
Logger.Log(ex, "Work Item " + wi.Id + " failed to save.");
522+
foreach (Exception ex2 in ex.InnerExceptions)
523+
{
524+
Logger.Log(LogLevel.Error, ex2.Message);
525+
}
526+
Logger.Log(LogLevel.Error, "Work Item " + wi.Id + " failed to save.");
523527
}
524528
}
525529

0 commit comments

Comments
 (0)