Repository: cordova-ios
Updated Branches:
  refs/heads/master 8e74760ab -> 27d2919ca


Add logging for malformed data

 This closes #317


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/27d2919c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/27d2919c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/27d2919c

Branch: refs/heads/master
Commit: 27d2919ca27b4032c2cb8745562abecc2d52f6e4
Parents: 8e74760
Author: rafael-chavez <rafchav...@gmail.com>
Authored: Fri Jun 2 16:28:01 2017 -0700
Committer: Shazron Abdullah <shaz...@gmail.com>
Committed: Fri Jun 9 16:01:56 2017 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/Private/CDVJSON_private.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/27d2919c/CordovaLib/Classes/Private/CDVJSON_private.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/Private/CDVJSON_private.m 
b/CordovaLib/Classes/Private/CDVJSON_private.m
index 5385680..054d655 100644
--- a/CordovaLib/Classes/Private/CDVJSON_private.m
+++ b/CordovaLib/Classes/Private/CDVJSON_private.m
@@ -66,9 +66,9 @@
     id object = [NSJSONSerialization JSONObjectWithData:[self 
dataUsingEncoding:NSUTF8StringEncoding]
                                                 
options:NSJSONReadingMutableContainers
                                                   error:&error];
-
+    
     if (error != nil) {
-        NSLog(@"NSString JSONObject error: %@", [error localizedDescription]);
+        NSLog(@"NSString JSONObject error: %@, Malformed Data: %@", [error 
localizedDescription], self);
     }
 
     return object;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to