Skip to content

Commit dc34af6

Browse files
authored
DocumentId property wrapper: Emit error message on a single line (#10289)
* Emit error message on a single line * Wrap value in quotes
1 parent 089d45a commit dc34af6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Firestore/Swift/Source/Codable/DocumentID.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ public struct DocumentID<Value: DocumentIDWrappable & Codable>:
130130
service: "[FirebaseFirestoreSwift]",
131131
code: "I-FST000002",
132132
message: """
133-
Attempting to initialize or set a @DocumentID property with a non-nil
134-
value: \(value). The document ID is managed by Firestore and any
135-
initialized or set value will be ignored. The ID is automatically set
136-
when reading from Firestore."
133+
Attempting to initialize or set a @DocumentID property with a non-nil \
134+
value: "\(value)". The document ID is managed by Firestore and any \
135+
initialized or set value will be ignored. The ID is automatically set \
136+
when reading from Firestore.
137137
"""
138138
)
139139
}

0 commit comments

Comments
 (0)