From 3543441b96ea04a541845fc588de7c8411c46d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Thu, 9 Jan 2025 10:39:31 +0100 Subject: [PATCH] v0.0.554 --- goextVersion.go | 4 ++-- wpdf/wpdfTable.go | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/goextVersion.go b/goextVersion.go index 20342ca..b85ba3e 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -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" diff --git a/wpdf/wpdfTable.go b/wpdf/wpdfTable.go index 6edc784..40376e0 100644 --- a/wpdf/wpdfTable.go +++ b/wpdf/wpdfTable.go @@ -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 } }