diff --git a/api/rest.go b/api/rest.go index f421a1f..f4f77f3 100644 --- a/api/rest.go +++ b/api/rest.go @@ -344,8 +344,8 @@ func (api *RestApi) stopJob(rw http.ResponseWriter, r *http.Request) { rw.Header().Add("Content-Type", "application/json") rw.WriteHeader(http.StatusOK) json.NewEncoder(rw).Encode(job) - 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("Stop job (dbid: %d) failed: %s", job.ID, err.Error()), http.StatusInternalServerError, rw) + handleError(fmt.Errorf("archiving failed: %w", err), http.StatusInternalServerError, rw) } func (api *RestApi) getJobMetrics(rw http.ResponseWriter, r *http.Request) {