From b204f8b3acb7aa8f2b77adf9f7249318248e4b4a Mon Sep 17 00:00:00 2001 From: "K. Shankari" Date: Mon, 20 Mar 2017 21:08:48 -0700 Subject: [PATCH] While communicating with the server, log the URL for which we receive the error So that we can get a better sense of why we should look at the server code. --- src/ios/BEMCommunicationHelperPlugin.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ios/BEMCommunicationHelperPlugin.m b/src/ios/BEMCommunicationHelperPlugin.m index 5730488..7fe7818 100644 --- a/src/ios/BEMCommunicationHelperPlugin.m +++ b/src/ios/BEMCommunicationHelperPlugin.m @@ -13,7 +13,8 @@ - (void)pushGetJSON:(CDVInvokedUrlCommand *)command [CommunicationHelper pushGetJSON:filledMessage toURL:relativeURL completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { if (error != NULL) { - [self sendError:error callBackID:callbackId]; + NSLog(@"Got error for command with URL %@", [[command arguments] objectAtIndex:0]); + [self sendError:[error localizedDescription] callBackID:callbackId]; } else { NSError *parseError; NSDictionary *parsedResult = [NSJSONSerialization JSONObjectWithData:data