diff --git a/Libraries/LinkingIOS/RCTLinkingManager.m b/Libraries/LinkingIOS/RCTLinkingManager.m index 516cd0f1125d3c..9a05da57642a8e 100644 --- a/Libraries/LinkingIOS/RCTLinkingManager.m +++ b/Libraries/LinkingIOS/RCTLinkingManager.m @@ -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 { @@ -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 }