Skip to content

Commit 1465fff

Browse files
authored
Merge pull request #1521 from microsoft/baywet-patch-1
- makes exception more explicit when inserting duplicated tree nodes
2 parents d48bf09 + 60d2640 commit 1465fff

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)