mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-25 13:25:36 +08:00
Miscellaneous cleanups
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user