Skip to content

Commit d354b8f

Browse files
Add original error stanza to NSError userInfo created by getNSErrorFrom:
1 parent d3448e1 commit d354b8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Monal/Classes/HelperTools.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ +(NSString*) extractXMPPError:(XMPPStanza*) stanza withDescription:(NSString*) d
667667
+(NSError*) getNSErrorFrom:(XMPPStanza*) stanza withDescription:(NSString*) description
668668
{
669669
NSString* errorMessage = [HelperTools extractXMPPError:stanza withDescription:description];
670-
return [NSError errorWithDomain:@"Monal" code:0 userInfo:@{NSLocalizedDescriptionKey: errorMessage}];
670+
return [NSError errorWithDomain:@"Monal" code:0 userInfo:@{NSLocalizedDescriptionKey: errorMessage, @"stanza": stanza}];
671671
}
672672

673673
+(void) initSystem

0 commit comments

Comments
 (0)