From 4e8dd0cfefbbfc459f0f2ebb080660cccd64917d Mon Sep 17 00:00:00 2001 From: Vlad Velicu Date: Mon, 11 Sep 2023 17:35:46 +0100 Subject: [PATCH] feedback --- Objective-C/CBLDatabase.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objective-C/CBLDatabase.mm b/Objective-C/CBLDatabase.mm index 7b4588340..b0340242f 100644 --- a/Objective-C/CBLDatabase.mm +++ b/Objective-C/CBLDatabase.mm @@ -796,7 +796,7 @@ - (nullable CBLCollection*) collectionWithName: (NSString*)name C4Error c4err = {}; C4Collection* c4col = c4db_getCollection(_c4db, spec, &c4err); if (!c4col) { - if (c4err.code != 7) { + if (c4err.code != kC4ErrorNotFound && c4err.domain == LiteCoreDomain) { CBLWarn(Database, @"%@ Failed to get collection: %@.%@ (%d/%d)", self, scopeName, name, c4err.domain, c4err.code); convertError(c4err, error);