tell error is opt->dist is too small