reformatting print_error in hconfig