Skip to content

Commit

Permalink
nicer error messages (fixes #56)
Browse files Browse the repository at this point in the history
  • Loading branch information
neelance committed Mar 10, 2017
1 parent e413f4e commit 356ebd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (b *execBuilder) makeObjectExec(typeName string, fields map[string]*schema.
m := resolverType.Method(methodIndex)
fe, err := b.makeFieldExec(typeName, f, m, methodIndex, methodHasReceiver)
if err != nil {
return nil, fmt.Errorf("method %q of %s: %s", m.Name, resolverType, err)
return nil, fmt.Errorf("%s\n\treturned by (%s).%s", err, resolverType, m.Name)
}
fieldExecs[name] = fe
}
Expand Down

0 comments on commit 356ebd9

Please sign in to comment.