summaryrefslogtreecommitdiff
path: root/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'file.go')
-rw-r--r--file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.go b/file.go
index 1d3360e..ecdadf4 100644
--- a/file.go
+++ b/file.go
@@ -78,7 +78,7 @@ func (f *File) SaveAs(name string, opt ...Options) error {
".xltx": ContentTypeTemplate,
}[filepath.Ext(f.Path)]
if !ok {
- return ErrWorkbookExt
+ return ErrWorkbookFileFormat
}
f.setContentTypePartProjectExtensions(contentType)
file, err := os.OpenFile(filepath.Clean(name), os.O_WRONLY|os.O_TRUNC|os.O_CREATE, os.ModePerm)