Improving error messages for heh

fixes https://github.com/HeHStudy/HeH/issues/1913