Skip to content

Commit

Permalink
fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Jun 27, 2024
1 parent 7740b99 commit a55dfba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modeler/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit a55dfba

Please sign in to comment.