Skip to content

Commit 54a26af

Browse files
Junio BrancoJunio Branco
Junio Branco
authored and
Junio Branco
committed
Fix blank error code
1 parent 8db8b50 commit 54a26af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ios/Firestack/FirestackAuth.m

+5-5
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ @implementation FirestackAuth
196196
if (user != nil) {
197197
[self userCallback:callback user:user];
198198
} else {
199-
NSDictionary *err = @{
200-
@"error": @"createUserWithEmailError",
201-
@"name": @([error code]),
202-
@"description": [error localizedDescription]
203-
};
199+
NSDictionary *err =@{
200+
@"error": @"createUserWithEmailError",
201+
@"code": [NSString stringWithFormat:@"%d", @([error code])],
202+
@"message": [error localizedDescription]
203+
};
204204
callback(@[err]);
205205
}
206206
}];

0 commit comments

Comments
 (0)