From a55dfba00bc9f1fca0386f3b9e02b7671adedb23 Mon Sep 17 00:00:00 2001 From: qmuntal Date: Thu, 27 Jun 2024 15:38:40 +0200 Subject: [PATCH] fix error handling --- modeler/write.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modeler/write.go b/modeler/write.go index fb8662c..21b5928 100644 --- a/modeler/write.go +++ b/modeler/write.go @@ -268,7 +268,7 @@ func WritePrimitiveAttributes(doc *gltf.Document, attr ...PrimitiveAttribute) (g normalized, err = checkColor(a.Data) } if err != nil { - return nil, fmt.Errorf("%s: %w", a.Name, a.Name) + return nil, fmt.Errorf("%s: %w", a.Name, err) } data = append(data, a.Data) props = append(props, attrProps{Name: a.Name, Normalized: normalized})