Document onerror callback.

During a pairing session @stefanpenner whipped this out to help
debug an error, and I figured it might be useful to others.