Skip to content

Commit b48e25a

Browse files
committed
chore: update recursion depth error handling
1 parent 7687210 commit b48e25a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/commands/permission_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (m *mockCheckClient) CheckPermission(_ context.Context, _ *v1.CheckPermissi
4242
protoText = "invalid"
4343
}
4444

45-
err := spiceerrors.WithCodeAndDetailsAsError(fmt.Errorf("test"), codes.ResourceExhausted, &errdetails.ErrorInfo{
45+
err := spiceerrors.WithCodeAndDetailsAsError(fmt.Errorf("test"), codes.FailedPrecondition, &errdetails.ErrorInfo{
4646
Reason: v1.ErrorReason_name[int32(v1.ErrorReason_ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED)],
4747
Domain: "test",
4848
Metadata: map[string]string{

0 commit comments

Comments
 (0)