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 --- sheet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sheet.go') diff --git a/sheet.go b/sheet.go index 7541f43..97ef57e 100644 --- a/sheet.go +++ b/sheet.go @@ -482,7 +482,7 @@ func (f *File) SetSheetBackground(sheet, picture string) error { } ext, ok := supportImageTypes[path.Ext(picture)] if !ok { - return errors.New("unsupported image extension") + return ErrImgExt } file, _ := ioutil.ReadFile(picture) name := f.addMedia(file, ext) -- cgit v1.2.1