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:
Milen Dzhumerov 2015-12-15 03:57:26 -08:00 committed by facebook-github-bot-5
parent 0fe50055c4
commit 2ac0157a24

View File

@ -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;
}