We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 46ae4ff + 6bcbe71 commit 06bfb79Copy full SHA for 06bfb79
ios/RNSensitiveInfo/RNSensitiveInfo.m
@@ -179,7 +179,11 @@ - (NSString *)messageForError:(NSError *)error
179
localizedReason:prompt
180
reply:^(BOOL success, NSError * _Nullable error) {
181
if (!success) {
182
- reject(nil, @"The user name or passphrase you entered is not correct.", nil);
+ if (error) {
183
+ reject(nil, error.localizedDescription, error);
184
+ } else {
185
+ reject(nil, @"The user name or passphrase you entered is not correct.", nil);
186
+ }
187
return;
188
}
189
0 commit comments