From 4cce8c7b6bf08ffff5e30999aa49259324d58f5d Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sat, 26 Aug 2017 07:27:59 -0600 Subject: [PATCH] Rename parse errors to errors during parsing (#1838) --- caddyfile/dispenser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/caddyfile/dispenser.go b/caddyfile/dispenser.go index edb7bfafa..34bcef3e2 100644 --- a/caddyfile/dispenser.go +++ b/caddyfile/dispenser.go @@ -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) }