Skip to content

Commit

Permalink
More descriptive error for authentication issues
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisballinger committed Apr 21, 2015
1 parent c6aa93c commit 7ba4ecd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChatSecure/Classes/Utilities/OTRXMPPError.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ + (NSError *)errorForXMLElement:(NSXMLElement *)xmlError
NSMutableDictionary * userInfo = [NSMutableDictionary dictionary];
if (errorString) {
[userInfo setObject:errorString forKey:NSLocalizedDescriptionKey];
} else if (xmlError) {
[userInfo setObject:xmlError.stringValue forKey:NSLocalizedDescriptionKey];
}

if(xmlError)
Expand Down

0 comments on commit 7ba4ecd

Please sign in to comment.