cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piotr Zalewa <>
Subject Re: [Contacts] Should remove a missing contact be an error?
Date Tue, 17 Dec 2013 12:16:47 GMT
Is there any reason?

On 12/12/2013 09:45 PM, Piotr Zalewa wrote:
> Hi,
> 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.
> Thanks

Piotr Zalewa

View raw message