Skip to content

Commit

Permalink
logging(gen): added a name of a type for debugging "non-primitive enu…
Browse files Browse the repository at this point in the history
…m" errors
  • Loading branch information
vingarzan committed Feb 17, 2025
1 parent d938ae2 commit 4bf4718
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gen/schema_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,10 @@ func (g *schemaGen) generate2(name string, schema *jsonschema.Schema) (ret *ir.T
jsonschema.Boolean,
jsonschema.Null:
default:
return nil, &ErrNotImplemented{
Name: "non-primitive enum",
}
return nil, errors.Wrap(
&ErrNotImplemented{Name: "non-primitive enum"},
name,
)
}
}

Expand Down

0 comments on commit 4bf4718

Please sign in to comment.