aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Auth/Source/FIRAuthErrorUtils.m
diff options
context:
space:
mode:
authorGravatar Xiangtian Dai <xiangtian@google.com>2017-08-11 17:12:11 -0700
committerGravatar GitHub <noreply@github.com>2017-08-11 17:12:11 -0700
commit8c3ef6b780d5b9b116c693b3b440dcc7f68b4827 (patch)
tree1c53f866e945324acd7fff5b93e77abb6333d994 /Firebase/Auth/Source/FIRAuthErrorUtils.m
parent6b0739790c637baf2e05b4bc339abb27cfb4f8cb (diff)
Handles MISSING_EMAIL error from server. (#187)
Diffstat (limited to 'Firebase/Auth/Source/FIRAuthErrorUtils.m')
-rw-r--r--Firebase/Auth/Source/FIRAuthErrorUtils.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Firebase/Auth/Source/FIRAuthErrorUtils.m b/Firebase/Auth/Source/FIRAuthErrorUtils.m
index 5c5b10a..42fb543 100644
--- a/Firebase/Auth/Source/FIRAuthErrorUtils.m
+++ b/Firebase/Auth/Source/FIRAuthErrorUtils.m
@@ -525,7 +525,7 @@ static NSString *const FIRAuthErrorCodeString(FIRAuthErrorCode code) {
case FIRAuthErrorCodeMissingContinueURI:
return @"ERROR_MISSING_CONTINUE_URI";
case FIRAuthErrorCodeMissingEmail:
- return @"MISSING_EMAIL";
+ return @"ERROR_MISSING_EMAIL";
case FIRAuthErrorCodeMissingPhoneNumber:
return @"ERROR_MISSING_PHONE_NUMBER";
case FIRAuthErrorCodeInvalidPhoneNumber:
@@ -803,8 +803,8 @@ static NSString *const FIRAuthErrorCodeString(FIRAuthErrorCode code) {
return[self errorWithCode:FIRAuthInternalErrorCodeMissingContinueURI message:message];
}
-+ (NSError *)missingEmail {
- return [self errorWithCode:FIRAuthInternalErrorCodeMissingEmail];
++ (NSError *)missingEmailErrorWithMessage:(nullable NSString *)message {
+ return [self errorWithCode:FIRAuthInternalErrorCodeMissingEmail message:message];
}
+ (NSError *)missingPhoneNumberErrorWithMessage:(nullable NSString *)message {