summaryrefslogtreecommitdiff
path: root/excelize.go
diff options
context:
space:
mode:
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())