Skip to content

Commit

Permalink
Fixed Issue #26554
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasser-G committed Sep 26, 2019
1 parent 15b3895 commit 79912e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Libraries/LinkingIOS/RCTLinkingManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ - (void)handleOpenURLNotification:(NSNotification *)notification
if (success) {
resolve(@YES);
} else {
reject(RCTErrorUnspecified, [NSString stringWithFormat:@"Unable to open URL: %@", URL], nil);
RCTLogWarn([NSString stringWithFormat:@"Unable to open URL: %@", URL]);
reject([NSString stringWithFormat:@"Unable to open URL: %@", URL]);
}
}];
} else {
Expand All @@ -107,7 +108,8 @@ - (void)handleOpenURLNotification:(NSNotification *)notification
if (opened) {
resolve(@YES);
} else {
reject(RCTErrorUnspecified, [NSString stringWithFormat:@"Unable to open URL: %@", URL], nil);
RCTLogWarn([NSString stringWithFormat:@"Unable to open URL: %@", URL]);
reject([NSString stringWithFormat:@"Unable to open URL: %@", URL]);
}
#endif
}
Expand Down

0 comments on commit 79912e6

Please sign in to comment.