3Squared / SQKDataKit

Lightweight Core Data helper to reduce boilerplate code.
MIT License
19 stars 6 forks source link

Use NSAssert to check MOC saves without errors in operations. #63

Open lukestringer90 opened 9 years ago

lukestringer90 commented 9 years ago

When the context does not successfully save from within an operation then the error is made available from the error property. However recovering from an error once the operation has finished is next to impossible as you do not have access to the context that failed. Therefore is it better to just hard crash and fix the bug when you know the save failed.