17 lines
311 B
Go
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
|
|
}
|