Permalink
Browse files

Better mismatch notification coverage - cleanup

  • Loading branch information...
ccwasden committed May 1, 2014
1 parent 3643e69 commit b284b4d2a6222b2ce6e153d70fe9cf0b1eaf9219
Showing with 2 additions and 2 deletions.
  1. +2 −2 MagicalRecord/Categories/NSPersistentStoreCoordinator+MagicalRecord.m
@@ -102,7 +102,7 @@ - (NSPersistentStore *) MR_addSqliteStoreNamed:(id)storeFileName withOptions:(__
MRLogWarn(@"Removed incompatible model version: %@", [url lastPathComponent]);
if(deleteStoreError) {
- [[NSNotificationCenter defaultCenter] postNotificationName:kMagicalRecordPSCMismatchCouldNotDeleteStore object:deleteStoreError];
+ [[NSNotificationCenter defaultCenter] postNotificationName:kMagicalRecordPSCMismatchCouldNotDeleteStore object:nil userInfo:@{@"Error":deleteStoreError}];
}
else {
[[NSNotificationCenter defaultCenter] postNotificationName:kMagicalRecordPSCMismatchDidDeleteStore object:nil];
@@ -122,7 +122,7 @@ - (NSPersistentStore *) MR_addSqliteStoreNamed:(id)storeFileName withOptions:(__
error = nil;
}
else {
- [[NSNotificationCenter defaultCenter] postNotificationName:kMagicalRecordPSCMismatchCouldNotRecreateStore object:error];
+ [[NSNotificationCenter defaultCenter] postNotificationName:kMagicalRecordPSCMismatchCouldNotRecreateStore object:nil userInfo:@{@"Error":error}];
}
}
}

0 comments on commit b284b4d

Please sign in to comment.