Commit 2b37bfa3 authored by Felix Paul Kühne's avatar Felix Paul Kühne

MLMediaLibrary: add error reporting if we fail to save the DB

parent 6b63caf3
......@@ -284,7 +284,9 @@ static NSString *kLastTVDBUpdateServerTime = @"MLLastTVDBUpdateServerTime";
- (void)save
{
[[self managedObjectContext] save:nil];
NSError *error = nil;
BOOL success = [[self managedObjectContext] save:&error];
NSAssert1(success, @"Can't save: %@", error);
}
- (void)tvShowEpisodesInfoGrabber:(MLTVShowEpisodesInfoGrabber *)grabber didFailWithError:(NSError *)error
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment