Improve error message

multistore
Laurent 2 years ago
parent 0c255cc256
commit 375feb94c1
  1. 10
      LeStorage/StoredSingleton.swift

@ -23,4 +23,14 @@ public class StoredSingleton<T: Storable>: StoredCollection<T> {
return self.items.first
}
// MARK: - Protects from use
// public override func addOrUpdate(instance: T) throws {
// fatalError("method unavailable for StoredSingleton")
// }
public override func addOrUpdate(contentOfs sequence: any Sequence<T>) throws {
fatalError("method unavailable for StoredSingleton, use update")
}
}

Loading…
Cancel
Save