Remove segvaulting error handling

This commit is contained in:
Jan Eitzinger 2022-02-15 12:13:21 +01:00
parent b0403da93b
commit ec677d26d2

View File

@ -344,8 +344,8 @@ func (api *RestApi) stopJob(rw http.ResponseWriter, r *http.Request) {
rw.Header().Add("Content-Type", "application/json") rw.Header().Add("Content-Type", "application/json")
rw.WriteHeader(http.StatusOK) rw.WriteHeader(http.StatusOK)
json.NewEncoder(rw).Encode(job) json.NewEncoder(rw).Encode(job)
handleError(fmt.Errorf("Stop job (dbid: %d) failed: %s", job.ID, err.Error()), http.StatusInternalServerError, rw) // handleError(fmt.Errorf("Stop job (dbid: %d) failed: %s", job.ID, err.Error()), http.StatusInternalServerError, rw)
// handleError(fmt.Errorf("archiving failed: %w", err), http.StatusInternalServerError, rw) handleError(fmt.Errorf("archiving failed: %w", err), http.StatusInternalServerError, rw)
} }
func (api *RestApi) getJobMetrics(rw http.ResponseWriter, r *http.Request) { func (api *RestApi) getJobMetrics(rw http.ResponseWriter, r *http.Request) {