Fix prompts and add error checking for hg_info