From 1558b26da7746561a21f109229b9f50b6b5f8c85 Mon Sep 17 00:00:00 2001 From: mitchell Date: Fri, 27 Oct 2023 17:05:06 -0400 Subject: [PATCH] attachStagedCommit should handle validation errors too. --- pkg/platform/api/buildplanner/request/attachstagedcommit.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/platform/api/buildplanner/request/attachstagedcommit.go b/pkg/platform/api/buildplanner/request/attachstagedcommit.go index 7ff8204cd3..48b5620f4f 100644 --- a/pkg/platform/api/buildplanner/request/attachstagedcommit.go +++ b/pkg/platform/api/buildplanner/request/attachstagedcommit.go @@ -31,6 +31,10 @@ mutation ($organization: String!, $project: String!, $parentCommit: ID!, $commit __typename message } + ... on ValidationError { + __typename + message + } ... on Forbidden { __typename message