Skip to content

Commit

Permalink
Print which type caused the error (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat authored Mar 20, 2023
1 parent 5cfd38e commit 816695f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ func executeAction(action int, w io.Writer, gc *genContext, tc *typeContext) err

scaleType, err := getScaleType(typ, field)
if err != nil {
return fmt.Errorf("getting scale type: %w", err)
return fmt.Errorf("getting scale type for %s: %w", typ, err)
}

tctx := &typeContext{
Expand Down

0 comments on commit 816695f

Please sign in to comment.