Compare commits

..

3 Commits

Author SHA1 Message Date
b7c48cb467 v0.0.556
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 3m29s
2025-01-09 10:41:00 +01:00
a0a80899f5 v0.0.555
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Has been cancelled
2025-01-09 10:39:56 +01:00
3543441b96 v0.0.554
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Has been cancelled
2025-01-09 10:39:31 +01:00
2 changed files with 8 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
package goext package goext
const GoextVersion = "0.0.553" const GoextVersion = "0.0.556"
const GoextVersionTimestamp = "2025-01-09T10:29:22+0100" const GoextVersionTimestamp = "2025-01-09T10:41:00+0100"

View File

@@ -120,7 +120,12 @@ func (b *TableBuilder) Build() {
for i, dat := range b.rows { for i, dat := range b.rows {
if len(dat.cells) != columnCount { if len(dat.cells) != columnCount {
builder.FPDF().SetError(exerr.New(exerr.TypeInternal, "data must have the same length as header").Int("idx", i).Any("cells", dat.cells).Any("colWidths", b.columnWidths).Build()) err := exerr.New(exerr.TypeInternal, "data must have the same length as header").
Int("idx", i).
Strs("cells", langext.ArrMap(dat.cells, func(v TableCell) string { return v.Content })).
Strs("colWidths", langext.Coalesce(b.columnWidths, nil)).
Build()
builder.FPDF().SetError(err)
return return
} }
} }