Terrible Parse Error Object
NSError is a very common and easy to use object in iOS.
But Parse has shown us how not to use it.
I faced the same problem as Jonathan with using the
NSError emitted from Parse library.
[error localizedDescription] will print a nice message.
It is especially useful if the error is to do with “The Internet appears to be offline”.
[error localizedDescription] is a generic “The operation cannot be completed (Error 100)”.
Firstly, if you look under their error codes, error 100 is Connection Failed. But in my case, it is specifically the Internet is offline.
If you dig around to find other usable error message, you will stumble upon
[[error userInfo] objectForKey:@"error"], which is a long debug string that looks like this: