api/jobqueue: return 500 error when updating job unexpectedly failed
Prior this commit these errors would just disappear.
This commit is contained in:
parent
05b1093170
commit
3e7a96e5ea
1 changed files with 2 additions and 0 deletions
|
|
@ -134,6 +134,8 @@ func (api *API) updateJobHandler(writer http.ResponseWriter, request *http.Reque
|
|||
statusResponseError(writer, http.StatusBadRequest, err.Error())
|
||||
case *store.InvalidRequestError:
|
||||
statusResponseError(writer, http.StatusBadRequest, err.Error())
|
||||
default:
|
||||
statusResponseError(writer, http.StatusInternalServerError, err.Error())
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue