How can I get more useful information from NSError?
If you look up the NSError documentation, it has a User info dictionary keys
section which has a constant defined as NSUnderlyingErrorKey (it also has a description for the keys).
NSDictionary *userInfo = [error userInfo];NSError *underlyingError = [userInfo objectForKey:NSUnderlyingErrorKey];NSString *underlyingErrorDescription = [underlyingError localizedDescription];