cloudapi/v2: catch ParameterComboError from ostree param validation
This commit is contained in:
parent
9e0af86775
commit
3839a7d0dc
1 changed files with 2 additions and 0 deletions
|
|
@ -290,6 +290,8 @@ func (h *apiHandlers) PostCompose(ctx echo.Context) error {
|
||||||
return HTTPError(ErrorInvalidOSTreeRef)
|
return HTTPError(ErrorInvalidOSTreeRef)
|
||||||
case ostree.ResolveRefError:
|
case ostree.ResolveRefError:
|
||||||
return HTTPErrorWithInternal(ErrorInvalidOSTreeRepo, v)
|
return HTTPErrorWithInternal(ErrorInvalidOSTreeRepo, v)
|
||||||
|
case ostree.ParameterComboError:
|
||||||
|
return HTTPError(ErrorInvalidOSTreeParams)
|
||||||
default:
|
default:
|
||||||
// general case
|
// general case
|
||||||
return HTTPError(ErrorInvalidOSTreeParams)
|
return HTTPError(ErrorInvalidOSTreeParams)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue