nevan king nevan king - 1 year ago 68
Objective-C Question

How can I view an NSError?

What's the best way to log an


- (void)checkThing:(Thing *)thing withError:(NSError *)error {
NSLog(@"Error: %@", error);

Gives me a

Answer Source

Looking at the NSError documentation tells me that you'll need to do something like:

NSLog(@"%@",[error localizedDescription]);

This should then give you human readable output

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download