Skip to content

Commit

Permalink
Fix blank error code
Browse files Browse the repository at this point in the history
  • Loading branch information
Junio Branco authored and Junio Branco committed Mar 7, 2017
1 parent 8db8b50 commit 54a26af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ios/Firestack/FirestackAuth.m
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@ @implementation FirestackAuth
if (user != nil) {
[self userCallback:callback user:user];
} else {
NSDictionary *err = @{
@"error": @"createUserWithEmailError",
@"name": @([error code]),
@"description": [error localizedDescription]
};
NSDictionary *err =@{
@"error": @"createUserWithEmailError",
@"code": [NSString stringWithFormat:@"%d", @([error code])],
@"message": [error localizedDescription]
};
callback(@[err]);
}
}];
Expand Down

0 comments on commit 54a26af

Please sign in to comment.