mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Add filename:line to check's error messages.
This commit is contained in:
1 parent
cf8167a648
commit
1d07846295
1 file changed
+1
-1
+1
-1
@@ -102,7 +102,7 @@ func (c *Checker) checkFuncBody(n *a.Node) error {
|
||||
p := scope{}
|
||||
for _, m := range n.List2 {
|
||||
if err := c.checkStatement(m, p); err != nil {
|
||||
return err
|
||||
return fmt.Errorf("%v at %s:%d", err, m.Filename, m.Line)
|
||||
}
|
||||
}
|
||||
c.funcScopes[n] = p
|
||||
|
||||
Reference in new issue
Block a user