Skip to content

Commit 69d9275

Browse files
authored
Merge pull request #796 GetInsertionIndex should include the entry's name when it throws an InvalidOperationException
GetInsertionIndex should include the entry's name when it throws an InvalidOperationException
2 parents ed362ae + 0db8c5e commit 69d9275

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

GVFS/GVFS.Virtualization/Projection/GitIndexProjection.SortedFolderEntries.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private int GetInsertionIndex(LazyUTF8String name)
132132
insertionIndex = this.GetSortedEntriesIndexOfName(name);
133133
if (insertionIndex >= 0)
134134
{
135-
throw new InvalidOperationException("All entries should be unique");
135+
throw new InvalidOperationException($"All entries should be unique, non-unique entry: {name.GetString()}");
136136
}
137137

138138
// When the name is not found the returned value is the bitwise complement of

0 commit comments

Comments
 (0)