Changed the toSuccessCalbackString to toErrorCallbackString when there is an error.
Tested with Cordova 2.6.0 and iOS 6.1.2