From bda8e7f8129dae0064c47f8e051f76492e1128f5 Mon Sep 17 00:00:00 2001 From: xuri Date: Tue, 16 Nov 2021 00:40:44 +0800 Subject: This closes #1061, support multi-byte language on set header footer typo fixed and simplify code for read the data values arguments of formula functions --- errors.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'errors.go') diff --git a/errors.go b/errors.go index 56a2280..f9eedde 100644 --- a/errors.go +++ b/errors.go @@ -51,6 +51,11 @@ func newInvalidStyleID(styleID int) error { return fmt.Errorf("invalid style ID %d, negative values are not supported", styleID) } +// newFieldLengthError defined the error message on receiving the field length overflow. +func newFieldLengthError(name string) error { + return fmt.Errorf("field %s must be less or equal than 255 characters", name) +} + var ( // ErrStreamSetColWidth defined the error message on set column width in // stream writing mode. -- cgit v1.2.1