diff --git a/pkg/platform/api/buildplanner/response/shared.go b/pkg/platform/api/buildplanner/response/shared.go index b714d06b4a..001dbf13b3 100644 --- a/pkg/platform/api/buildplanner/response/shared.go +++ b/pkg/platform/api/buildplanner/response/shared.go @@ -90,7 +90,8 @@ func IsErrorResponse(errorType string) bool { errorType == types.MergeConflictErrorType || errorType == types.RevertConflictErrorType || errorType == types.CommitNotInTargetHistoryErrorType || - errorType == types.ComitHasNoParentErrorType + errorType == types.CommitHasNoParentErrorType || + errorType == types.InvalidInputErrorType } // Error contains an error message. diff --git a/pkg/platform/api/buildplanner/types/errors.go b/pkg/platform/api/buildplanner/types/errors.go index e3f234d30a..85146640a9 100644 --- a/pkg/platform/api/buildplanner/types/errors.go +++ b/pkg/platform/api/buildplanner/types/errors.go @@ -19,6 +19,7 @@ const ( MergeConflictErrorType = "MergeConflict" RevertConflictErrorType = "RevertConflict" CommitNotInTargetHistoryErrorType = "CommitNotInTargetHistory" - ComitHasNoParentErrorType = "CommitHasNoParent" + CommitHasNoParentErrorType = "CommitHasNoParent" TargetNotFoundErrorType = "TargetNotFound" + InvalidInputErrorType = "InvalidInput" )