whyceewhite / CarLess

Logging commuting trips completed using transit or pedestrian modes of transportation.
0 stars 0 forks source link

Provide error handling for managed object contexts upon saving #17

Closed whyceewhite closed 9 years ago

whyceewhite commented 9 years ago

The CaDataManager class does not handle errors when saving the various entities. Currently, the error handler is nil. Implement a handler so that errors can be properly detected.

whyceewhite commented 9 years ago

In Swift 2.0, the managed object context has a throws on the save method. As a result, the error checking was forced. Currently, only a print statement indicates that an error occurred.