weldr: undo unknown commit should return UnknownCommit
This commit is contained in:
parent
98b2dab128
commit
440753a274
1 changed files with 1 additions and 1 deletions
|
|
@ -1664,7 +1664,7 @@ func (api *API) blueprintUndoHandler(writer http.ResponseWriter, request *http.R
|
|||
bpChange, err := api.store.GetBlueprintChange(name, commit)
|
||||
if err != nil {
|
||||
errors := responseError{
|
||||
ID: "BlueprintsError",
|
||||
ID: "UnknownCommit",
|
||||
Msg: err.Error(),
|
||||
}
|
||||
statusResponseError(writer, http.StatusBadRequest, errors)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue