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:
parent
bd061b575d
commit
b6bf49fc46
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue