summaryrefslogtreecommitdiff
path: root/excelize.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-05-10 00:09:24 +0800
committerxuri <xuri.me@gmail.com>2021-05-10 00:09:24 +0800
commitbe12cc27f1d774154b17763c071e1dc6f91eab8c (patch)
treed6544c2e33e8aacfb0867e79ffc69fde435d3183 /excelize.go
parent423bc26d1f87db55bab5704afebf4509269bbc7e (diff)
This closes #652, new SetColWidth API, support set column width in stream writing mode, and export error message
Diffstat (limited to 'excelize.go')
-rw-r--r--excelize.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/excelize.go b/excelize.go
index 6b3d406..940acf1 100644
--- a/excelize.go
+++ b/excelize.go
@@ -16,7 +16,6 @@ import (
"archive/zip"
"bytes"
"encoding/xml"
- "errors"
"fmt"
"io"
"io/ioutil"
@@ -351,7 +350,7 @@ func (f *File) AddVBAProject(bin string) error {
return fmt.Errorf("stat %s: no such file or directory", bin)
}
if path.Ext(bin) != ".bin" {
- return errors.New("unsupported VBA project extension")
+ return ErrAddVBAProject
}
f.setContentTypePartVBAProjectExtensions()
wb := f.relsReader(f.getWorkbookRelsPath())