diff --git a/plugin/resolvergen/resolver.go b/plugin/resolvergen/resolver.go index c2a8a285c93..aa3be72739e 100644 --- a/plugin/resolvergen/resolver.go +++ b/plugin/resolvergen/resolver.go @@ -120,7 +120,7 @@ func (m *Plugin) generatePerSchema(data *codegen.Data) error { implementation := strings.TrimSpace(rewriter.GetMethodBody(structName, f.GoFieldName)) comment := strings.TrimSpace(strings.TrimLeft(rewriter.GetMethodComment(structName, f.GoFieldName), `\`)) if implementation == "" { - implementation = `panic(fmt.Errorf("not implemented"))` + implementation = fmt.Sprintf("panic(fmt.Errorf(\"not implemented: %v - %v\"))", f.GoFieldName, f.Name) } if comment == "" { comment = fmt.Sprintf("%v is the resolver for the %v field.", f.GoFieldName, f.Name)