Skip to content

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

chore: minor error log tweak (#9318)

Tianzhou (天舟)b02b61ec6bae
diff --git a/backend/api/v1/environment_service.go b/backend/api/v1/environment_service.go
index f37b50eead..697f740916 100644
--- a/backend/api/v1/environment_service.go
+++ b/backend/api/v1/environment_service.go
@@ -160,7 +160,7 @@ func (s *EnvironmentService) DeleteEnvironment(ctx context.Context, request *v1p
return nil, status.Errorf(codes.Internal, err.Error())
}
if count > 0 {
- return nil, status.Errorf(codes.FailedPrecondition, "all instances in the environment should be deleted")
+ return nil, status.Errorf(codes.FailedPrecondition, "all instances in the environment should be deleted first")
}
if _, err := s.store.UpdateEnvironmentV2(ctx, environment.ResourceID, &store.UpdateEnvironmentMessage{Delete: &deletePatch}, principalID); err != nil {