diff options
author | xuri <xuri.me@gmail.com> | 2021-09-28 22:02:31 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-09-28 22:02:31 +0800 |
commit | 2d8b5b1885b3d5cd14c974df61a3d0d757efd7bd (patch) | |
tree | 855a0c980145b9fbae26a55fe07676b765e1d518 /errors.go | |
parent | 490f3063c2cb35a94d64f6a6859cce7b9dee276d (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.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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") |