-
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Describe the feature
When generating, I got this error.
Unfortunately, I don't know in which file the errors happens (and it seems to be a random order when generating, probably because of a map usage).
Generating file generated\trash.go from ...\models2\trash.go...
Error: error render template got error: invalid interface UuidGetter: Method UuidGetter.GetUuid: when only one return value is defined, its type must be error
Usage:
gorm gen [flags]
Flags:
-h, --help help for gen
-i, --input string Path to Go interface file with raw SQL annotations
-o, --output string Directory to place generated code (default "./g")
-t, --typed Generated Typed API (default true)
error render template got error: invalid interface UuidGetter: Method UuidGetter.GetUuid: when only one return value is defined, its type must be error
I think something like Error: error render template "file.go" got error would be great.
Motivation
I had to remove every successful file to find which one had that error.
(Note: I see after that the interface is indicated, but indicating in which file would still be great)
Related Issues
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels