improve error messages in mindist
cmr=v1.7.4:reviewer=ompi-rm1.7