Skip to content

Commit 8cfc438

Browse files
authored
Merge pull request #60 from anyproto/GO-2837-space-limits
GO-2837 return proto error on addRecord
2 parents 84e0e9a + 5a2710c commit 8cfc438

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

coordinator/coordinator.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ func (c *coordinator) AclAddRecord(ctx context.Context, spaceId string, payload
290290
WriteMembers: limits.SpaceMembersWrite,
291291
})
292292
if err != nil {
293+
if errors.Is(err, acl.ErrLimitExceed) {
294+
err = coordinatorproto.ErrSpaceLimitReached
295+
}
293296
return
294297
}
295298
return rawRecordWithId, nil

0 commit comments

Comments
 (0)