
FIXED: * `envs/funcs.go:78:3: unknown field IgnoreWhiteSpace in struct literal of type EnvErrNoVal, but does have IgnoreWhitespace` * `envs/funcs_enverrnoval.go:15:8: sb.WasFound undefined (type *strings.Builder has no field or method WasFound)`
17 lines
270 B
Go
17 lines
270 B
Go
package pdsh
|
|
|
|
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': %v",
|
|
p.ptrn, p.pos, string(p.r), p.err,
|
|
)
|
|
|
|
return
|
|
}
|