Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
fix(installer): propagate swallowed GatherUpdatesInfo errors
Mriganka6bea1581f6f1
diff --git a/backend/cmd/installer/processor/logic.go b/backend/cmd/installer/processor/logic.goindex a1ae5580..c8c0978b 100644--- a/backend/cmd/installer/processor/logic.go+++ b/backend/cmd/installer/processor/logic.go@@ -149,8 +149,8 @@ func (p *processor) applyChanges(ctx context.Context, state *operationState) (erreturn}// refresh state for updates- if err := p.checker.GatherUpdatesInfo(ctx); err != nil {- err = fmt.Errorf("failed to gather info after update: %w", err)+ if gatherErr := p.checker.GatherUpdatesInfo(ctx); gatherErr != nil {+ err = fmt.Errorf("failed to gather info after update: %w", gatherErr)}}()@@ -446,8 +446,8 @@ func (p *processor) install(ctx context.Context, state *operationState) (err errreturn}// refresh state for updates- if err := p.checker.GatherUpdatesInfo(ctx); err != nil {- err = fmt.Errorf("failed to gather info after update: %w", err)+ if gatherErr := p.checker.GatherUpdatesInfo(ctx); gatherErr != nil {+ err = fmt.Errorf("failed to gather info after update: %w", gatherErr)}}()@@ -499,8 +499,8 @@ func (p *processor) update(ctx context.Context, stack ProductStack, state *operareturn}// refresh state for updates- if err := p.checker.GatherUpdatesInfo(ctx); err != nil {- err = fmt.Errorf("failed to gather info after update: %w", err)+ if gatherErr := p.checker.GatherUpdatesInfo(ctx); gatherErr != nil {+ err = fmt.Errorf("failed to gather info after update: %w", gatherErr)}}()@@ -694,7 +694,7 @@ func (p *processor) remove(ctx context.Context, stack ProductStack, state *operareturn fmt.Errorf("failed to gather worker info after remove: %w", err)}if err := p.checker.GatherUpdatesInfo(ctx); err != nil {- err = fmt.Errorf("failed to gather info after update: %w", err)+ return fmt.Errorf("failed to gather info after update: %w", err)}case ProductStackInstaller:@@ -733,8 +733,8 @@ func (p *processor) purge(ctx context.Context, stack ProductStack, state *operatreturn}// refresh state for updates- if err := p.checker.GatherUpdatesInfo(ctx); err != nil {- err = fmt.Errorf("failed to gather info after update: %w", err)+ if gatherErr := p.checker.GatherUpdatesInfo(ctx); gatherErr != nil {+ err = fmt.Errorf("failed to gather info after update: %w", gatherErr)}}()@@ -774,7 +774,7 @@ func (p *processor) purge(ctx context.Context, stack ProductStack, state *operatreturn fmt.Errorf("failed to gather worker info after purge: %w", err)}if err := p.checker.GatherUpdatesInfo(ctx); err != nil {- err = fmt.Errorf("failed to gather info after update: %w", err)+ return fmt.Errorf("failed to gather info after update: %w", err)}case ProductStackInstaller: