[Sugar-devel] Error handling in async js code

Manuel Quiñones manuq at laptop.org
Fri May 31 08:24:21 EDT 2013


2013/5/30 Daniel Narvaez <dwnarvaez at gmail.com>:
> Hello,
>
> in the async API we have written so far we have not been handling errors
> very consistently. I think we should just adopt the nodejs convention. The
> first parameter passed to all the async callbacks is an error or null if the
> call succeeded.

I have seen this convention used in other JS projects too, so let's go
ahead with it.

--
.. manuq ..


More information about the Sugar-devel mailing list