An error bound in the Sudakov-Fernique inequality