Skip to content

Commit 3fb42d8

Browse files
Added error logging when creating workitem
1 parent c1bc0d8 commit 3fb42d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WorkItemMigrator/WorkItemImport/WitClient/WitClientWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public WorkItem CreateWorkItem(string wiType, DateTime? createdDate = null, stri
6767
}
6868
catch (Exception e)
6969
{
70-
Logger.Log(LogLevel.Error, "Error when creating new Work item: " + e.Message);
70+
Logger.Log(LogLevel.Error, $"Error when creating new Work item: {e.Message} - {(e.InnerException != null ? e.InnerException.Message : "")}");
7171
return null;
7272
}
7373

0 commit comments

Comments
 (0)