mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
Improve error message when profiler data cannot be uploaded
Summary: Improve error message when profiling data cannot be sent to the packager public Reviewed By: tadeuzagallo Differential Revision: D2749489 fb-gh-sync-id: 26bd56d05be5f3579e45c2407974dd2b885460fc
This commit is contained in:
parent
0fe50055c4
commit
2ac0157a24
@ -669,7 +669,7 @@ void _RCTProfileEndFlowEvent(NSNumber *flowID)
|
||||
void RCTProfileSendResult(RCTBridge *bridge, NSString *route, NSData *data)
|
||||
{
|
||||
if (![bridge.bundleURL.scheme hasPrefix:@"http"]) {
|
||||
RCTLogError(@"Cannot upload profile information");
|
||||
RCTLogWarn(@"Cannot upload profile information because you're not connected to the packager. The profiling data is still saved in the app container.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user