I usually write managedObjectContext().save(nil)
.
I think most of the cases you do not need a bulletproof, 100% code coverage, even apple engineers said in 2014 CloudKit lecture that error handling in Core Data is a good if have but not crucial feature, compare i.e. to CloudKit
, where it is really important to deal with returned errors.
I would be curious at what cases is it worth to deal with error in Core-Data
and how do you deal with it? Only plot error out to terminal? Send error reports to backend?