resolve-hostnames: more informative error messages