fix(edge): return proper error from context BE-11564 (#323)

develop
andres-portainer 2025-01-16 20:18:51 -03:00 committed by GitHub
parent 2abe40b786
commit 154ca9f1b1
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ func (handler *Handler) edgeStackStatusUpdate(w http.ResponseWriter, r *http.Req
var stack *portainer.EdgeStack
if err := handler.DataStore.UpdateTx(func(tx dataservices.DataStoreTx) error {
if r.Context().Err() != nil {
if err := r.Context().Err(); err != nil {
return err
}