Skip to content

Commit b8f3907

Browse files
committed
Print children for "Could not find subtree after UTF8 offset" syntax comparison error message
1 parent 908c9bf commit b8f3907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/_SwiftSyntaxTestSupport/Syntax+Assertions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public enum SubtreeError: Error, CustomStringConvertible {
186186
case let .invalidMarker(name):
187187
return "Could not find marker with name '\(name)'"
188188
case let .invalidSubtree(tree, afterUTF8Offset, type):
189-
return "Could not find subtree after UTF8 offset \(afterUTF8Offset) with type \(type) in:\n\(tree.debugDescription)"
189+
return "Could not find subtree after UTF8 offset \(afterUTF8Offset) with type \(type) in:\n\(tree.debugDescription(includeChildren: true))"
190190
}
191191
}
192192
}

0 commit comments

Comments
 (0)