Skip to content

Commit

Permalink
More descriptive not implemented stubs (#2328)
Browse files Browse the repository at this point in the history
  • Loading branch information
lintaba committed Aug 18, 2022
1 parent 9f919d2 commit c2d02d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/resolvergen/resolver.go
Expand Up @@ -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)
Expand Down

0 comments on commit c2d02d3

Please sign in to comment.