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:
parent
0d99751a2f
commit
4cce8c7b6b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue