Skip to content
Snippets Groups Projects
Commit d0ce6e3b authored by cramakri's avatar cramakri
Browse files

Added abort on error to simplify development.

SVN: 27446
parent 189e576c
No related branches found
No related tags found
No related merge requests found
......@@ -117,7 +117,7 @@
if (managedObjectContext != nil) {
if ([managedObjectContext hasChanges] && ![managedObjectContext save:&error]) {
// TODO Implement error handling
NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
NSLog(@"Unresolved error -- could not save %@, %@", error, [error userInfo]);
abort();
}
}
......@@ -142,6 +142,12 @@
[[CISDOBIpadServiceManager alloc]
initWithStoreUrl: storeUrl openbisUrl: openbisUrl trusted: YES error: &error];
if (!_serviceManager) {
// TODO Implement error handling
NSLog(@"Unresolved error -- could not create service manager %@, %@", error, [error userInfo]);
abort();
}
return _serviceManager;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment