From 07a57581f59d7f15c9b2c5b46465caf4109a1161 Mon Sep 17 00:00:00 2001 From: Andreas Fritzler Date: Thu, 25 Apr 2024 16:01:50 +0200 Subject: [PATCH] Fix error handling in BMC controller (#20) --- internal/controller/bmc_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/bmc_controller.go b/internal/controller/bmc_controller.go index e0ac5a5..8b507f9 100644 --- a/internal/controller/bmc_controller.go +++ b/internal/controller/bmc_controller.go @@ -120,7 +120,7 @@ func (r *BMCReconciler) updateBMCStatusDetails(ctx context.Context, log logr.Log manager, err := bmcClient.GetManager() if err != nil { - return fmt.Errorf("failed to get manager details") + return fmt.Errorf("failed to get manager details: %w", err) } if manager != nil { bmcBase := bmcObj.DeepCopy()