I just read about that, but hadn't implemented it yet. 

I presume I would check if there was an error, normalize it, and then pass it to the callback.