more meaningful error diag for test failure in resolve_hardlinks sub