Answer architecture round 4: New keeps every module the loaded manifests read, and the note on a failed load names them all from one function beside noDataNote, so no category carries its source's modules
This commit is contained in:
@@ -31,7 +31,7 @@ func (f *Generator) FakeStruct(v any) error {
|
||||
defer f.mu.Unlock()
|
||||
shape, err := f.structShapeOf(p.Elem().Type())
|
||||
if err != nil {
|
||||
return fmt.Errorf("fejkdata: %w", err)
|
||||
return fmt.Errorf("fejkdata: %w", withDefaultModules(err, f.defaultModules))
|
||||
}
|
||||
shape.fill(f.drawState, p.Elem())
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user