summaryrefslogtreecommitdiff
path: root/file.go
diff options
context:
space:
mode:
authorsceneq <sceneq@users.noreply.github.com>2022-05-16 22:05:22 +0900
committerGitHub <noreply@github.com>2022-05-16 21:05:22 +0800
commitbe5a4033c0c7de6247c02dc3ab76b634ac19d4c6 (patch)
treed4958490277d9f2ebea71547cb19a411b592c4e8 /file.go
parent19a0cf3cec71fc49851d29fb420674b027f50d93 (diff)
This closes #1229, rename ErrMaxFileNameLength to ErrMaxFilePathLength (#1230)
Co-authored-by: sceneq
Diffstat (limited to 'file.go')
-rw-r--r--file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.go b/file.go
index 9707a79..1d3360e 100644
--- a/file.go
+++ b/file.go
@@ -66,8 +66,8 @@ func (f *File) Save() error {
// SaveAs provides a function to create or update to a spreadsheet at the
// provided path.
func (f *File) SaveAs(name string, opt ...Options) error {
- if len(name) > MaxFileNameLength {
- return ErrMaxFileNameLength
+ if len(name) > MaxFilePathLength {
+ return ErrMaxFilePathLength
}
f.Path = name
contentType, ok := map[string]string{