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