weldr: return fewer errors in composeDeleteHandler

Don't try deleting a compose when it's already known that the uuid is
invalid.
This commit is contained in:
Lars Karlitski 2020-05-01 10:07:13 +02:00 committed by Tom Gundersen
parent cf53e6a9e2
commit 35173cae82
2 changed files with 2 additions and 1 deletions

View file

@ -1537,6 +1537,7 @@ func (api *API) composeDeleteHandler(writer http.ResponseWriter, request *http.R
"UnknownUUID",
fmt.Sprintf("%s is not a valid uuid", uuidString),
})
continue
}
err = api.store.DeleteCompose(id)