chore: rename errors

This commit is contained in:
Noah Hsu
2022-06-23 16:03:27 +08:00
parent fd5c3e831d
commit d77dea733f
7 changed files with 21 additions and 24 deletions

View File

@ -20,7 +20,7 @@ func AddURI(ctx context.Context, uri string, dstDirPath string) error {
}
// check is it could upload
if account.Config().NoUpload {
return errors.WithStack(errs.ErrUploadNotSupported)
return errors.WithStack(errs.UploadNotSupported)
}
// check path is valid
obj, err := operations.Get(ctx, account, dstDirActualPath)