Give the help examples that read no data and the exit codes, say a data path is no directory in one shape, suggest a record of one for a choice, name a JSON syntax error's line and column, and say no data is loaded from FakeStruct

This commit is contained in:
2026-10-11 23:27:33 +02:00
committed by Lillem4n
parent 1a7656d076
commit 9671600fff
5 changed files with 44 additions and 15 deletions
+1 -1
View File
@@ -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 f.noDataNote(fmt.Errorf("fejkdata: %w", err))
}
shape.fill(f.drawState, p.Elem())
return nil