Handling Core Data Errors - app continues

The locations app does not stop on the Internal Error alert. The alert pops up for a second then continues to the HUD “Tagged” box and crashes. I have only tested in the Simulator. The print error comes up in the debug section.

The app does crash but the alert goes away before reading and clicking the ok button.

Yes, this is a known issue. The afterDelay() bit needs to be inside the do section, right after you save to Core Data. This way the HUD won’t show up if there is a Core Data error.

Thanks Hollance! Got it to work. Sorry if I missed that in docs somewhere.

It’s my fault, not yours. :slight_smile: It’s a mistake in the book.