From 816695fc7a4cd636602901d4b69140edc00c727f Mon Sep 17 00:00:00 2001 From: Matthias Fasching <5011972+fasmat@users.noreply.github.com> Date: Mon, 20 Mar 2023 16:09:35 +0100 Subject: [PATCH] Print which type caused the error (#52) --- generate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate.go b/generate.go index 3ba3311..dd85765 100644 --- a/generate.go +++ b/generate.go @@ -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{