Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ios/Firestack/FirestackAuth.m
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ @implementation FirestackAuth
} else {
NSDictionary *err = @{
@"error": @"createUserWithEmailError",
@"name": @([error code]),
@"description": [error localizedDescription]
@"code": [NSString stringWithFormat:@"%d", [error code]],
@"message": [error localizedDescription]
};
callback(@[err]);
}
Expand Down
4 changes: 2 additions & 2 deletions ios/Firestack/FirestackErrors.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ + (NSDictionary *) handleFirebaseError:(NSString *) name
{
NSMutableDictionary *err = [NSMutableDictionary dictionaryWithObjectsAndKeys:
name, @"name",
@([error code]), @"code",
[error localizedDescription], @"rawDescription",
[NSString stringWithFormat:@"%d", [error code]], @"code",
[error localizedDescription], @"message",
[[error userInfo] description], @"userInfo",
nil];

Expand Down