weldr: Fix /compose/image response for an unknown UUID

If the UUID is unknown it should return UnknownUUID not
BuildMissingFile.
This commit is contained in:
Brian C. Lane 2020-04-14 15:45:05 -07:00 committed by Tom Gundersen
parent bd061b575d
commit b6bf49fc46

View file

@ -1765,7 +1765,7 @@ func (api *API) composeImageHandler(writer http.ResponseWriter, request *http.Re
compose, exists := api.store.GetCompose(uuid)
if !exists {
errors := responseError{
ID: "BuildMissingFile",
ID: "UnknownUUID",
Msg: fmt.Sprintf("Compose %s doesn't exist", uuidString),
}
statusResponseError(writer, http.StatusBadRequest, errors)