From 154ca9f1b15a99199fbb58338e915ee27dd20c54 Mon Sep 17 00:00:00 2001 From: andres-portainer <91705312+andres-portainer@users.noreply.github.com> Date: Thu, 16 Jan 2025 20:18:51 -0300 Subject: [PATCH] fix(edge): return proper error from context BE-11564 (#323) --- api/http/handler/edgestacks/edgestack_status_update.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/http/handler/edgestacks/edgestack_status_update.go b/api/http/handler/edgestacks/edgestack_status_update.go index c38300a49..6a8b1e535 100644 --- a/api/http/handler/edgestacks/edgestack_status_update.go +++ b/api/http/handler/edgestacks/edgestack_status_update.go @@ -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 }