diff options
Diffstat (limited to 'prog/encoding.go')
| -rw-r--r-- | prog/encoding.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prog/encoding.go b/prog/encoding.go index 5a2c564e7..2216955d8 100644 --- a/prog/encoding.go +++ b/prog/encoding.go @@ -660,7 +660,7 @@ func (p *parser) parseArgStruct(typ Type, dir Dir) (Arg, error) { p.Parse('{') t1, ok := typ.(*StructType) if !ok { - p.eatExcessive(false, "wrong struct arg") + p.eatExcessive(false, "wrong struct arg for %q", typ.Name()) p.Parse('}') return typ.DefaultArg(dir), nil } @@ -728,7 +728,7 @@ func (p *parser) parseArgArray(typ Type, dir Dir) (Arg, error) { func (p *parser) parseArgUnion(typ Type, dir Dir) (Arg, error) { t1, ok := typ.(*UnionType) if !ok { - p.eatExcessive(true, "wrong union arg") + p.eatExcessive(true, "wrong union arg for %q", typ.Name()) return typ.DefaultArg(dir), nil } p.Parse('@') |
