Skip to content

Commit 79912e6

Browse files
committed
Fixed Issue #26554
1 parent 15b3895 commit 79912e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Libraries/LinkingIOS/RCTLinkingManager.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ - (void)handleOpenURLNotification:(NSNotification *)notification
9797
if (success) {
9898
resolve(@YES);
9999
} else {
100-
reject(RCTErrorUnspecified, [NSString stringWithFormat:@"Unable to open URL: %@", URL], nil);
100+
RCTLogWarn([NSString stringWithFormat:@"Unable to open URL: %@", URL]);
101+
reject([NSString stringWithFormat:@"Unable to open URL: %@", URL]);
101102
}
102103
}];
103104
} else {
@@ -107,7 +108,8 @@ - (void)handleOpenURLNotification:(NSNotification *)notification
107108
if (opened) {
108109
resolve(@YES);
109110
} else {
110-
reject(RCTErrorUnspecified, [NSString stringWithFormat:@"Unable to open URL: %@", URL], nil);
111+
RCTLogWarn([NSString stringWithFormat:@"Unable to open URL: %@", URL]);
112+
reject([NSString stringWithFormat:@"Unable to open URL: %@", URL]);
111113
}
112114
#endif
113115
}

0 commit comments

Comments
 (0)