diff --git a/GRDB/Record/PersistableRecord.swift b/GRDB/Record/PersistableRecord.swift index fef0caa34..cbb12fc9e 100644 --- a/GRDB/Record/PersistableRecord.swift +++ b/GRDB/Record/PersistableRecord.swift @@ -33,7 +33,7 @@ extension PersistenceError { switch self { case let .recordNotFound(databaseTableName: databaseTableName, key: key): let row = Row(key) // For nice output - return "Record not found in table \(databaseTableName): \(row.description)" + return "Key not found in table \(databaseTableName): \(row.description)" } } } diff --git a/Tests/GRDBTests/MutablePersistableRecordTests.swift b/Tests/GRDBTests/MutablePersistableRecordTests.swift index d8145c30a..d05584c60 100644 --- a/Tests/GRDBTests/MutablePersistableRecordTests.swift +++ b/Tests/GRDBTests/MutablePersistableRecordTests.swift @@ -704,7 +704,7 @@ class MutablePersistableRecordTests: GRDBTestCase { key: ["id": .null]) XCTAssertEqual( error.description, - "Record not found in table place: [id:NULL]") + "Key not found in table place: [id:NULL]") } do { let error = PersistenceError.recordNotFound( @@ -712,7 +712,7 @@ class MutablePersistableRecordTests: GRDBTestCase { key: ["uuid": "E621E1F8-C36C-495A-93FC-0C247A3E6E5F".databaseValue]) XCTAssertEqual( error.description, - "Record not found in table user: [uuid:\"E621E1F8-C36C-495A-93FC-0C247A3E6E5F\"]") + "Key not found in table user: [uuid:\"E621E1F8-C36C-495A-93FC-0C247A3E6E5F\"]") } } }