You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/03/16 19:14:49 UTC

[13/29] ios commit: return error code as integer in contacts

return error code as integer in contacts


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

Branch: refs/heads/master
Commit: aa4d40dc352c0ca0dcbc7989640689f26e67884c
Parents: 91304c4
Author: Fil Maj <ma...@gmail.com>
Authored: Thu Mar 15 10:46:22 2012 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Fri Mar 16 10:56:50 2012 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVContacts.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/aa4d40dc/CordovaLib/Classes/CDVContacts.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVContacts.m b/CordovaLib/Classes/CDVContacts.m
index 8c397a5..f2e7a57 100755
--- a/CordovaLib/Classes/CDVContacts.m
+++ b/CordovaLib/Classes/CDVContacts.m
@@ -458,7 +458,7 @@
 		CFRelease(addrBook);
 	}
 	if (bIsError){
-		result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageToErrorObject: errCode];
+		result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsInt: errCode];
 		 jsString = [result toErrorCallbackString:callbackId];
 	}
 	if (jsString){