Skip to content

Commit 60d2640

Browse files
authored
- makes exception more explicit when inserting duplicated tree nodes
1 parent ebb7903 commit 60d2640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Services/OpenApiUrlTreeNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private OpenApiUrlTreeNode Attach(IEnumerable<string> segments,
175175
{
176176
if (PathItems.ContainsKey(label))
177177
{
178-
throw new ArgumentException("A duplicate label already exists for this node.", nameof(label));
178+
throw new ArgumentException($"A duplicate label already exists for this node: {label}", nameof(label));
179179
}
180180

181181
Path = currentPath;

0 commit comments

Comments
 (0)