v0.0.554
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Has been cancelled
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Has been cancelled
This commit is contained in:
parent
eef12da4e6
commit
3543441b96
@ -1,5 +1,5 @@
|
||||
package goext
|
||||
|
||||
const GoextVersion = "0.0.553"
|
||||
const GoextVersion = "0.0.554"
|
||||
|
||||
const GoextVersionTimestamp = "2025-01-09T10:29:22+0100"
|
||||
const GoextVersionTimestamp = "2025-01-09T10:39:31+0100"
|
||||
|
@ -120,7 +120,12 @@ func (b *TableBuilder) Build() {
|
||||
|
||||
for i, dat := range b.rows {
|
||||
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).
|
||||
Any("cells", langext.ArrMap(dat.cells, func(v TableCell) string { return v.Content })).
|
||||
Any("colWidths", b.columnWidths).
|
||||
Build()
|
||||
builder.FPDF().SetError(err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user