cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject ios commit: Add logging for malformed data
Date Fri, 09 Jun 2017 23:02:00 GMT
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 <rafchavez3@gmail.com>
Authored: Fri Jun 2 16:28:01 2017 -0700
Committer: Shazron Abdullah <shazron@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-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message