Skip to content

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

fix: wrong error msg (#12663)

ecmadao6ac65f8e1d1c
diff --git a/backend/api/gitops/gitlab.go b/backend/api/gitops/gitlab.go
index 39535b3fea..4e84c49822 100644
--- a/backend/api/gitops/gitlab.go
+++ b/backend/api/gitops/gitlab.go
@@ -24,7 +24,7 @@ func getGitLabPullRequestInfo(ctx context.Context, vcsProvider *store.VCSProvide
return nil, errors.Errorf("failed to unmarshal push event, error %v", err)
}
if pushEvent.ObjectKind != mergeRequestObjectKind {
- return nil, errors.Errorf("skip webhook event type, got %s, want push", pushEvent.ObjectKind)
+ return nil, errors.Errorf("skip webhook event type, got %s, want %s", pushEvent.ObjectKind, mergeRequestObjectKind)
}
if pushEvent.ObjectAttributes.Action != mergeAction {
return nil, errors.Errorf("skip webhook event action, got %s, want merge", pushEvent.ObjectAttributes.Action)