Skip to content

Commit

Permalink
error message checks if has callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
RangelReale committed Nov 5, 2024
1 parent 1753e16 commit 32b93bb
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/qdiimpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ func gen(outputName string, obj types.Object, iface *types.Interface) error {
bgroup.Id("msg").Op(":=").Lit("not implemented")
bgroup.If(Id("hasCallbacks")).
Block(
bgroup.Id("msg").Op("=").Lit("not supported by any callbacks"),
Id("msg").Op("=").Lit("not supported by any callbacks"),
)
bgroup.Return(Qual("fmt", "Errorf").
Call(Lit(fmt.Sprintf("[%s] method '%%s' %%s", objName)),
Expand Down
1 change: 0 additions & 1 deletion sample/complex/myinterface_qdii.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion sample/datatype/sampledata_qdii.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion sample/package/reader_qdii.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 32b93bb

Please sign in to comment.