Skip to content

Commit 502136f

Browse files
MrHinshCopilot
andauthored
Update src/MigrationTools.Clients.TfsObjectModel/Processors/TfsWorkItemMigrationProcessor.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d959f09 commit 502136f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MigrationTools.Clients.TfsObjectModel/Processors/TfsWorkItemMigrationProcessor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,9 @@ private void PopulateWorkItem(WorkItemData oldWorkItemData, WorkItemData newWork
537537
{
538538
newWorkItem.Fields["Microsoft.VSTS.TCM.Steps"].Value = oldWorkItem.Fields["Microsoft.VSTS.TCM.Steps"].Value;
539539
}
540-
catch (Exception e)
540+
catch (FieldDefinitionNotExistException ex)
541541
{
542-
Log.LogWarning("Microsoft.VSTS.TCM.Steps does not exist on Source Work Item. This field will be skipped, but the all other fields on the revision will be populated.");
542+
Log.LogWarning($"Microsoft.VSTS.TCM.Steps does not exist on Source Work Item. This field will be skipped, but the all other fields on the revision will be populated. Exception details: {ex.Message}");
543543
}
544544
newWorkItem.Fields["Microsoft.VSTS.Common.Priority"].Value =
545545
oldWorkItem.Fields["Microsoft.VSTS.Common.Priority"].Value;

0 commit comments

Comments
 (0)