Skip to content

Commit

Permalink
Merge pull request #14 from shankari/master
Browse files Browse the repository at this point in the history
While communicating with the server, log the URL for which we receive…
  • Loading branch information
shankari authored Mar 21, 2017
2 parents 5f15dac + b204f8b commit 4e44f22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ios/BEMCommunicationHelperPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e44f22

Please sign in to comment.