build: include position information in errors

Updates #5
This commit is contained in:
Michael McLoughlin
2019-01-04 15:01:29 -08:00
parent 80c427d051
commit 05cfa809f2
3 changed files with 65 additions and 2 deletions

View File

@@ -153,7 +153,8 @@ func (c *Context) activeglobal() *avo.Global {
}
func (c *Context) AddError(err error) {
c.errs = append(c.errs, err)
e := exterr(err)
c.errs = append(c.errs, e)
}
func (c *Context) AddErrorMessage(msg string) {