1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 05:19:39 +02:00

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

This commit is contained in:
andres-portainer 2025-01-16 20:18:51 -03:00 committed by GitHub
parent 2abe40b786
commit 154ca9f1b1

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
}