0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-06 22:40:31 -05:00

Rename parse errors to errors during parsing (#1838)

This commit is contained in:
Matthew Holt 2017-08-26 07:27:59 -06:00
parent 0d99751a2f
commit 4cce8c7b6b
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -210,9 +210,9 @@ func (d *Dispenser) EOFErr() error {
return d.Errf("Unexpected EOF")
}
// Err generates a custom parse error with a message of msg.
// Err generates a custom parse-time error with a message of msg.
func (d *Dispenser) Err(msg string) error {
msg = fmt.Sprintf("%s:%d - Parse error: %s", d.File(), d.Line(), msg)
msg = fmt.Sprintf("%s:%d - Error during parsing: %s", d.File(), d.Line(), msg)
return errors.New(msg)
}