This commit is contained in:
@@ -68,9 +68,7 @@ func (tp *TableParser) ParseAndRenderTable(ctx context.Context, pdf *gofpdf.Fpdf
|
||||
|
||||
// 渲染表格到PDF
|
||||
if err := tp.databaseRenderer.RenderTable(pdf, tableData); err != nil {
|
||||
tp.logger.Error("渲染表格失败",
|
||||
zap.String("field_type", fieldType),
|
||||
zap.Error(err))
|
||||
// 错误已返回,不记录日志
|
||||
return fmt.Errorf("渲染表格失败: %w", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user