devedup/FlickrKit — pull request #9 by lysannschlegel (2013-09-21 19:58:33+00:00)
Title: Fix 'unrecognized selector' error in case auth token request fails

Previously, the NSError generated by beginAuthWithCallbackURL:... if auth token or secret are missing sets the NSURLResponse object as NSLocalizedDescriptionKey. According to the docs, the object associated with NSLocalizedDescriptionKey must be a string. In particular, if you called -[NSError localizedDescription] on the object, a "unrecongnized selector 'length' sent to instance NSError" error occurred.

This pull request sets a string containing a generic error message including HTTP status code as NSLocalizedDescriptionKey.