remove second definition of `proto.onError`