Skip to content

Commit 202fac5

Browse files
authored
Update error messages with new Swift syntax (#336)
Update error messages with new Swift Syntax
1 parent 4dd7ec8 commit 202fac5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Firestore/Source/API/FIRFirestore.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ @implementation FIRFirestore {
7171
+ (instancetype)firestore {
7272
FIRApp *app = [FIRApp defaultApp];
7373
if (!app) {
74-
FSTThrowInvalidUsage(
75-
@"FIRAppNotConfiguredException",
76-
@"Failed to get FIRApp instance. Please call FIRApp.configure() before using FIRFirestore");
74+
FSTThrowInvalidUsage(@"FIRAppNotConfiguredException",
75+
@"Failed to get FirebaseApp instance. Please call FirebaseApp.configure() "
76+
@"before using Firestore");
7777
}
7878
return [self firestoreForApp:app database:kDefaultDatabaseID];
7979
}
@@ -102,7 +102,7 @@ + (instancetype)firestoreForApp:(FIRApp *)app database:(NSString *)database {
102102
FIRFirestore *firestore = instances[key];
103103
if (!firestore) {
104104
NSString *projectID = app.options.projectID;
105-
FSTAssert(projectID, @"FIROptions.projectID cannot be nil.");
105+
FSTAssert(projectID, @"FirebaseOptions.projectID cannot be nil.");
106106

107107
FSTDispatchQueue *workerDispatchQueue = [FSTDispatchQueue
108108
queueWith:dispatch_queue_create("com.google.firebase.firestore", DISPATCH_QUEUE_SERIAL)];
@@ -177,8 +177,8 @@ - (void)setSettings:(FIRFirestoreSettings *)settings {
177177
- (instancetype)firestoreWithConfiguredClient {
178178
if (!_client) {
179179
// These values are validated elsewhere; this is just double-checking:
180-
FSTAssert(_settings.host, @"FIRFirestoreSettings.host cannot be nil.");
181-
FSTAssert(_settings.dispatchQueue, @"FIRFirestoreSettings.dispatchQueue cannot be nil.");
180+
FSTAssert(_settings.host, @"FirestoreSettings.host cannot be nil.");
181+
FSTAssert(_settings.dispatchQueue, @"FirestoreSettings.dispatchQueue cannot be nil.");
182182

183183
FSTDatabaseInfo *databaseInfo =
184184
[FSTDatabaseInfo databaseInfoWithDatabaseID:_databaseID

0 commit comments

Comments
 (0)