Return error when specialization failed (#1436)
This commit is contained in:
@@ -198,7 +198,7 @@ func (fetcher *Fetcher) SpecializeHandler(w http.ResponseWriter, r *http.Request
|
|||||||
err = fetcher.SpecializePod(r.Context(), req.FetchReq, req.LoadReq)
|
err = fetcher.SpecializePod(r.Context(), req.FetchReq, req.LoadReq)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fetcher.logger.Error("error specializing pod", zap.Error(err))
|
fetcher.logger.Error("error specializing pod", zap.Error(err))
|
||||||
w.WriteHeader(http.StatusInternalServerError)
|
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user