cloudapi/v2: catch ParameterComboError from ostree param validation

This commit is contained in:
Achilleas Koutsou 2022-01-18 21:29:34 +01:00 committed by Ondřej Budai
parent 9e0af86775
commit 3839a7d0dc

View file

@ -290,6 +290,8 @@ func (h *apiHandlers) PostCompose(ctx echo.Context) error {
return HTTPError(ErrorInvalidOSTreeRef)
case ostree.ResolveRefError:
return HTTPErrorWithInternal(ErrorInvalidOSTreeRepo, v)
case ostree.ParameterComboError:
return HTTPError(ErrorInvalidOSTreeParams)
default:
// general case
return HTTPError(ErrorInvalidOSTreeParams)