Skip to content

Commit

Permalink
Fixed one more return code
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Aug 30, 2024
1 parent 09573bd commit df40863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/grpc/services/storageprovider/storageprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func (s *service) SetLock(ctx context.Context, req *provider.SetLockRequest) (*p
st = status.NewNotFound(ctx, "resource not found when setting lock")
case errtypes.PermissionDenied:
st = status.NewPermissionDenied(ctx, err, "permission denied")
case errtypes.BadRequest:
case errtypes.Conflict:
st = status.NewFailedPrecondition(ctx, err, "reference already locked")
default:
st = status.NewInternal(ctx, err, "error setting lock: "+req.Ref.String())
Expand Down

0 comments on commit df40863

Please sign in to comment.