You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EDIT: I initially assumed the issue was with getItem and setItem; but I noticed the message responses for remove respond with a message, and not an error object as per the README.
Original issue below:
getItem and setItem have inconsistent error responses given the other methods.
Eg: in the remove method, if the reference is null, the error response maps as follows:
pluginResult = [CDVPluginResult resultWithStatus: CDVCommandStatus_ERROR messageAsString:@"Reference was null"];
However, in both of the methods suggested, the error response is:
pluginResult = [CDVPluginResult resultWithStatus: CDVCommandStatus_ERROR messageAsInt:3]; //Reference was null
The text was updated successfully, but these errors were encountered:
dualcyclone
changed the title
Error messages for getItem and setItem are inconsistent
Error messages are inconsistent
Mar 27, 2017
EDIT: I initially assumed the issue was with getItem and setItem; but I noticed the message responses for
remove
respond with a message, and not an error object as per the README.Original issue below:
getItem
andsetItem
have inconsistent error responses given the other methods.Eg: in the
remove
method, if the reference is null, the error response maps as follows:pluginResult = [CDVPluginResult resultWithStatus: CDVCommandStatus_ERROR messageAsString:@"Reference was null"];
However, in both of the methods suggested, the error response is:
pluginResult = [CDVPluginResult resultWithStatus: CDVCommandStatus_ERROR messageAsInt:3]; //Reference was null
The text was updated successfully, but these errors were encountered: