From 11f7eb4029718c894762336f315911a7e394f118 Mon Sep 17 00:00:00 2001 From: Johan Larsson Date: Tue, 19 Mar 2024 16:22:20 +0100 Subject: [PATCH] address feedback in comment --- src/TfvcMigrator/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TfvcMigrator/Program.cs b/src/TfvcMigrator/Program.cs index ae66db1..303e0cc 100644 --- a/src/TfvcMigrator/Program.cs +++ b/src/TfvcMigrator/Program.cs @@ -261,12 +261,12 @@ pat is not null } else { - throw new InvalidOperationException("Should not be reachable. Should be a single changeset matching parent branch."); + throw new InvalidOperationException($"None of the commits created for the parent changeset {parentChangeset} has the expected branch {parentBranch}."); } } else { - throw new InvalidOperationException("Should not be reachable. Earlier code should have sorted topologically or failed."); + throw new InvalidOperationException($"A commit should have been created for the parent changeset {parentChangeset} before reaching this point."); } }