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

BIS-159 SP-395 : Improved error logging.

SVN: 27830
parent 49f69980
No related branches found
No related tags found
No related merge requests found
...@@ -267,8 +267,7 @@ ...@@ -267,8 +267,7 @@
if ([CISDOBIpadServiceWillLoginNotification isEqualToString: [note name]]) { if ([CISDOBIpadServiceWillLoginNotification isEqualToString: [note name]]) {
[self setStatusText: @"Logging in..."]; [self setStatusText: @"Logging in..."];
} else if ([CISDOBIpadServiceDidLoginNotification isEqualToString: [note name]]) { } else if ([CISDOBIpadServiceDidLoginNotification isEqualToString: [note name]]) {
NSError* errorOrNil = NSError* errorOrNil = [[note userInfo] valueForKey: NSUnderlyingErrorKey];
[[note userInfo] valueForKey: NSUnderlyingErrorKey];
if (errorOrNil) { if (errorOrNil) {
NSString *description = [[errorOrNil userInfo] valueForKey: NSLocalizedDescriptionKey]; NSString *description = [[errorOrNil userInfo] valueForKey: NSLocalizedDescriptionKey];
[self setStatusText: description]; [self setStatusText: description];
...@@ -278,7 +277,14 @@ ...@@ -278,7 +277,14 @@
} else if ([CISDOBIpadServiceWillRetrieveRootLevelEntitiesNotification isEqualToString: [note name]]) { } else if ([CISDOBIpadServiceWillRetrieveRootLevelEntitiesNotification isEqualToString: [note name]]) {
[self setStatusText: @"Retrieving root entities..."]; [self setStatusText: @"Retrieving root entities..."];
} else if ([CISDOBIpadServiceDidRetrieveRootLevelEntitiesNotification isEqualToString: [note name]]) { } else if ([CISDOBIpadServiceDidRetrieveRootLevelEntitiesNotification isEqualToString: [note name]]) {
[self clearStatusText]; NSError* errorOrNil = [[note userInfo] valueForKey: NSUnderlyingErrorKey];
if (errorOrNil) {
NSString *description = [[errorOrNil userInfo] valueForKey: NSLocalizedDescriptionKey];
NSString *statusText = [NSString stringWithFormat: @"Could not retrieve entities :%@", description];
[self setStatusText: statusText];
} else {
[self clearStatusText];
}
} else if ([CISDOBIpadServiceWillSynchEntitiesNotification isEqualToString: [note name]]) { } else if ([CISDOBIpadServiceWillSynchEntitiesNotification isEqualToString: [note name]]) {
[self setStatusText: @"Synching entities with cache..."]; [self setStatusText: @"Synching entities with cache..."];
} else if ([CISDOBIpadServiceDidSynchEntitiesNotification isEqualToString: [note name]]) { } else if ([CISDOBIpadServiceDidSynchEntitiesNotification isEqualToString: [note name]]) {
......
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