go_sysutils/pdsh/dshgroup/funcs_ptrnparseerr.go
2025-08-17 02:58:24 -04:00

17 lines
311 B
Go

package dshgroup
import (
"fmt"
)
// Error conforms a PtrnParseErr to error interface.
func (p *PtrnParseErr) Error() (errStr string) {
errStr = fmt.Sprintf(
"Parse error in pattern '%s', position %d rune '%s' (%#x) (in token: %v): %v",
p.ptrn, p.pos, string(p.r), p.r, p.inToken, p.err,
)
return
}