// EnrichErrorMsg returns err or a new PErr
// with a modified message, so that msgPrefix is added before the existing message.
EnrichErrorMsg returns err or a new PErr
with a modified message, so that msgPrefix is added before the existing message.
// EnrichErrorMsg returns err or a new PErr // with a modified message so that msgPrefix is added before the existing message .
func (pos *ParserPosition) EnrichErrorMsg(err error, msgPrefix string) error {
	perr := pos.EnsurePErr(err)
	perr.Msg = fmt.Sprintf("%v:%v", msgPrefix, perr.Msg)
	return perr
}
func ( pos * ParserPosition ) EnrichErrorMsg ( err error , msgPrefix string ) error { perr := pos . EnsurePErr ( err ) perr . Msg = fmt . Sprintf ( " " , msgPrefix , perr . Msg ) return perr }
EnrichErrorMsg returns err or a new PErr
with a modified message, so that msgPrefix is added before the existing message.
EnrichErrorMsg returns err or a new PErr with a modified message so that msgPrefix is added before the existing message .