cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piotr Zalewa <>
Subject [Contacts] Should remove a missing contact be an error?
Date Thu, 12 Dec 2013 20:45:54 GMT

I've been implementing Contacts API proxy on Firefox OS and been asked 
if there is a reason for calling error callback on removing a non 
existing contact.

FFOS is calling success.

Let mi quote Ben Kelly :
"Hmm, does the spec actually call this out as an error?  I find success 
in the "remove a non-existent entry" case more intuitive.  The client 
asked for the state where the DB does not contain X and open completion 
the DB does not contain X.  Whether any work is done is not really 
relevant to the caller, is it?"

We might consider changing that behaviour in FFOS if there is a good reason.

Piotr Zalewa

View raw message