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