mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Fix PersistenceError.description
This commit is contained in:
1 parent
31bdb2eeaa
commit
8ef28b0683
2 files changed
+3
-3
No files matched your search
@@ -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)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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\"]")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user