Skip to content

Commit 4abf860

Browse files
committed
PatternTextStyle now prints the pattern's capacity when it is exceeded (in DEBUG mode).
1 parent 05f2a04 commit 4abf860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/DiffableTextStylesXPattern/Style.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ extension PatternTextStyle {
158158
// MARK: Capacity
159159
//=--------------------------------------=
160160
guard contents.next() == nil else {
161-
throw Info([.mark(proposal.characters), "exceeded pattern capacity."])
161+
throw Info([.mark(proposal.characters), "exceeded pattern capacity", .mark(value.count)])
162162
}
163163
//=--------------------------------------=
164164
// MARK: Value -> Commit

0 commit comments

Comments
 (0)