added additional error feedback based on the hg log