diff --git a/controllers/csr_controller.go b/controllers/csr_controller.go index 301c7ee78..5806f0477 100644 --- a/controllers/csr_controller.go +++ b/controllers/csr_controller.go @@ -218,7 +218,10 @@ func (r *GuestCSRReconciler) getMachineAddresses( } if err := r.mCluster.Get(ctx, bmMachineName, &bmMachine); err != nil { - return nil, false, fmt.Errorf("failed to get hcloud and bare metal machine") + return nil, false, fmt.Errorf("failed to get hcloud (%s) or bare metal machine (%s): %w", + hcloudMachineName.Name, + bmMachineName.Name, + err) } return bmMachine.Status.Addresses, false, nil