hg errors codes are complicating things