This repository was archived by the owner on Dec 19, 2019. It is now read-only.
Commit 780a49c
Luke Stringer
Use NSAssert to check MOC saves without errors in operations.
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.1 parent b966370 commit 780a49c
1 file changed
Lines changed: 3 additions & 0 deletions
File tree
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
| |||
0 commit comments