Local error estimate in quadrature