Commit 4cce8c7b authored by Matthew Holt's avatar Matthew Holt

Rename parse errors to errors during parsing (#1838)

parent 0d99751a
...@@ -210,9 +210,9 @@ func (d *Dispenser) EOFErr() error { ...@@ -210,9 +210,9 @@ func (d *Dispenser) EOFErr() error {
return d.Errf("Unexpected EOF") 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 { 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) return errors.New(msg)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment