Hi Borja,

I still created a new function onComplete here.

Because the params passed to onComplete is NOT the array of object passed to onError function in https://github.com/mozilla-b2g/gaia/pull/10536/files#L1R1405.

And passing the two kinds of params to the same function(showSendMessageError or handleSendMessageError) is not good for reading the code.

So I think this way is more readable.
Wdyt?