drive: be more explicit in debug when setting permissions fail

This commit is contained in:
Nick Craig-Wood 2024-05-02 18:10:16 +01:00
parent 254e514330
commit 7237b142fa

View File

@ -152,7 +152,7 @@ func (f *Fs) setPermissions(ctx context.Context, info *drive.File, permissions [
return f.shouldRetry(ctx, err)
})
if err != nil {
fs.Errorf(f, "Failed to set permission: %v", err)
fs.Errorf(f, "Failed to set permission %s for %q: %v", perm.Role, perm.EmailAddress, err)
errs.Add(err)
}
}