You could supplement this error with context:

```
return nil, fmt.Errorf("marshalling fields to JSON, %v", err)
```