summaryrefslogtreecommitdiff
path: root/stream.go
diff options
context:
space:
mode:
authorNaturalGao <43291304+NaturalGao@users.noreply.github.com>2022-08-19 23:24:13 +0800
committerGitHub <noreply@github.com>2022-08-19 23:24:13 +0800
commit76f336809f5419343702de5b3284d46feb9ed266 (patch)
tree207546e0abb538b3fb6d646b046b4c919e4c5711 /stream.go
parentd1e76fc432ac5c9bde99591ec5e88e46b62d9c3d (diff)
This closes #849, add new function `DeleteComment` for delete comment (#1317)
- Update unit tests for the delete comment - Add 3 errors function for error messages
Diffstat (limited to 'stream.go')
-rw-r--r--stream.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream.go b/stream.go
index 91ae78a..3c05c32 100644
--- a/stream.go
+++ b/stream.go
@@ -92,7 +92,7 @@ type StreamWriter struct {
func (f *File) NewStreamWriter(sheet string) (*StreamWriter, error) {
sheetID := f.getSheetID(sheet)
if sheetID == -1 {
- return nil, fmt.Errorf("sheet %s is not exist", sheet)
+ return nil, newNoExistSheetError(sheet)
}
sw := &StreamWriter{
File: f,