From be12cc27f1d774154b17763c071e1dc6f91eab8c Mon Sep 17 00:00:00 2001 From: xuri Date: Mon, 10 May 2021 00:09:24 +0800 Subject: This closes #652, new SetColWidth API, support set column width in stream writing mode, and export error message --- excelize.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'excelize.go') 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()) -- cgit v1.2.1