From 230e1824d3783217ccbfe06e79ab29449dc7da10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9a=20Grondier?= Date: Fri, 20 Dec 2024 16:30:38 +0100 Subject: [PATCH] Fixup unchecked error --- pkg/resources/database/resource_user.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/resources/database/resource_user.go b/pkg/resources/database/resource_user.go index 458c452e..f3ab33e3 100644 --- a/pkg/resources/database/resource_user.go +++ b/pkg/resources/database/resource_user.go @@ -245,8 +245,11 @@ func UserCreate[T ResourceModelInterface](ctx context.Context, req resource.Crea } data.WaitForService(ctx, client, &resp.Diagnostics) - data.CreateResource(ctx, client, &diags) + if resp.Diagnostics.HasError() { + return + } + data.CreateResource(ctx, client, &resp.Diagnostics) if resp.Diagnostics.HasError() { return }