summaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-09-28 22:02:31 +0800
committerxuri <xuri.me@gmail.com>2021-09-28 22:02:31 +0800
commit2d8b5b1885b3d5cd14c974df61a3d0d757efd7bd (patch)
tree855a0c980145b9fbae26a55fe07676b765e1d518 /errors.go
parent490f3063c2cb35a94d64f6a6859cce7b9dee276d (diff)
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
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go2
1 files changed, 2 insertions, 0 deletions
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")