Updating the onError documentation