Miscellaneous cleanups

This commit is contained in:
Blake Watters
2012-02-17 15:40:14 -05:00
parent 67b3ba9222
commit e904394b6b
16 changed files with 52 additions and 43 deletions

View File

@@ -163,8 +163,9 @@ NSString* const RKDefaultSeedDatabaseFileName = @"RKSeedDatabase.sqlite";
}
- (void)finalizeSeedingAndExit {
NSError* error = [[_manager objectStore] save];
if (error != nil) {
NSError *error = nil;
BOOL success = [[_manager objectStore] save:&error];
if (! success) {
RKLogError(@"[RestKit] RKManagedObjectSeeder: Error saving object context: %@", [error localizedDescription]);
}