removeOnError

Removes a previously added "on error" callback

Parameters

onError

the callback to remove