Improve permission error handling

This commit is contained in:
Yang Luo
2023-10-22 02:30:29 +08:00
parent 98defe617b
commit 37744d6cd7
5 changed files with 170 additions and 66 deletions

View File

@ -83,5 +83,10 @@ func UploadPermissions(owner string, path string) (bool, error) {
return false, nil
}
return AddPermissionsInBatch(newPermissions), nil
affected, err := AddPermissionsInBatch(newPermissions)
if err != nil {
return false, err
}
return affected, nil
}