From 2d8b5b1885b3d5cd14c974df61a3d0d757efd7bd Mon Sep 17 00:00:00 2001 From: xuri Date: Tue, 28 Sep 2021 22:02:31 +0800 Subject: This closes #1027 and closes #1028 * Fix build-in scientific number format failed * An error will be returned if given an invalid custom number format when creating a new style --- errors.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'errors.go') diff --git a/errors.go b/errors.go index 9fc0957..e89fea1 100644 --- a/errors.go +++ b/errors.go @@ -112,6 +112,8 @@ var ( // ErrDefinedNameduplicate defined the error message on the same name // already exists on the scope. ErrDefinedNameduplicate = errors.New("the same name already exists on the scope") + // ErrCustomNumFmt defined the error message on receive the empty parameter. + ErrCustomNumFmt = errors.New("custom number format can not be empty") // ErrFontLength defined the error message on the length of the font // family name overflow. ErrFontLength = errors.New("the length of the font family name must be smaller than or equal to 31") -- cgit v1.2.1