Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: GetRollout not found (#11101)

p0ny871135737b68
diff --git a/backend/api/v1/rollout_service.go b/backend/api/v1/rollout_service.go
index 00764ac866..6b4072547a 100644
--- a/backend/api/v1/rollout_service.go
+++ b/backend/api/v1/rollout_service.go
@@ -255,6 +255,9 @@ func (s *RolloutService) GetRollout(ctx context.Context, request *v1pb.GetRollou
if err != nil {
return nil, status.Errorf(codes.Internal, "failed to get pipeline, error: %v", err)
}
+ if rollout == nil {
+ return nil, status.Errorf(codes.NotFound, "rollout not found for id: %d", rolloutID)
+ }
rolloutV1, err := convertToRollout(ctx, s.store, project, rollout)
if err != nil {