diff options
author | xuri <xuri.me@gmail.com> | 2022-10-20 00:02:30 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-10-20 00:02:30 +0800 |
commit | 2df615fa2831bd578371d4e3606f16461c474ce7 (patch) | |
tree | 440e30fc64cad3fde230a03645d4be96580fdff1 /errors.go | |
parent | 3ece904b0082f4d63afe0d795b61c860d0790c83 (diff) |
This close #1373, fixes the incorrect build-in number format apply the result
- An error will be returned when setting the stream row without ascending row numbers, to avoid potential mistakes as mentioned in #1139
- Updated unit tests
Diffstat (limited to 'errors.go')
-rw-r--r-- | errors.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -87,6 +87,12 @@ func newDecodeXMLError(err error) error { return fmt.Errorf("xml decode error: %s", err) } +// newStreamSetRowError defined the error message on the stream writer +// receiving the non-ascending row number. +func newStreamSetRowError(row int) error { + return fmt.Errorf("row %d has already been written", row) +} + var ( // ErrStreamSetColWidth defined the error message on set column width in // stream writing mode. |