diff options
author | Ryan Wilson <wilsonryan@google.com> | 2017-10-05 11:07:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-05 11:07:37 -0400 |
commit | 202fac501d0c8bfa405e5d7ee90ef52f3560c853 (patch) | |
tree | e6a972f7d2be62a6e0e7c6ad041f44960b0d8fce /Firestore/Source | |
parent | 4dd7ec8e4d6243820d4f877ccfd76c5b4a076dd5 (diff) |
Update error messages with new Swift syntax (#336)
Update error messages with new Swift Syntax
Diffstat (limited to 'Firestore/Source')
-rw-r--r-- | Firestore/Source/API/FIRFirestore.m | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Firestore/Source/API/FIRFirestore.m b/Firestore/Source/API/FIRFirestore.m index e8c4fa6..1b53e83 100644 --- a/Firestore/Source/API/FIRFirestore.m +++ b/Firestore/Source/API/FIRFirestore.m @@ -71,9 +71,9 @@ NSString *const FIRFirestoreErrorDomain = @"FIRFirestoreErrorDomain"; + (instancetype)firestore { FIRApp *app = [FIRApp defaultApp]; if (!app) { - FSTThrowInvalidUsage( - @"FIRAppNotConfiguredException", - @"Failed to get FIRApp instance. Please call FIRApp.configure() before using FIRFirestore"); + FSTThrowInvalidUsage(@"FIRAppNotConfiguredException", + @"Failed to get FirebaseApp instance. Please call FirebaseApp.configure() " + @"before using Firestore"); } return [self firestoreForApp:app database:kDefaultDatabaseID]; } @@ -102,7 +102,7 @@ NSString *const FIRFirestoreErrorDomain = @"FIRFirestoreErrorDomain"; FIRFirestore *firestore = instances[key]; if (!firestore) { NSString *projectID = app.options.projectID; - FSTAssert(projectID, @"FIROptions.projectID cannot be nil."); + FSTAssert(projectID, @"FirebaseOptions.projectID cannot be nil."); FSTDispatchQueue *workerDispatchQueue = [FSTDispatchQueue queueWith:dispatch_queue_create("com.google.firebase.firestore", DISPATCH_QUEUE_SERIAL)]; @@ -177,8 +177,8 @@ NSString *const FIRFirestoreErrorDomain = @"FIRFirestoreErrorDomain"; - (instancetype)firestoreWithConfiguredClient { if (!_client) { // These values are validated elsewhere; this is just double-checking: - FSTAssert(_settings.host, @"FIRFirestoreSettings.host cannot be nil."); - FSTAssert(_settings.dispatchQueue, @"FIRFirestoreSettings.dispatchQueue cannot be nil."); + FSTAssert(_settings.host, @"FirestoreSettings.host cannot be nil."); + FSTAssert(_settings.dispatchQueue, @"FirestoreSettings.dispatchQueue cannot be nil."); FSTDatabaseInfo *databaseInfo = [FSTDatabaseInfo databaseInfoWithDatabaseID:_databaseID |