Skip to content

Commit

Permalink
UPSTREAM: <carry>: openshift: machine: Return full invalid configurat…
Browse files Browse the repository at this point in the history
…ion error
  • Loading branch information
LorbusChris authored and openshift-merge-robot committed Sep 23, 2020
1 parent 274ce1d commit 86841cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloud/azure/actuators/machine/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ func (s *Reconciler) createVirtualMachine(ctx context.Context, nicName string) e

var detailedError autorest.DetailedError
if errors.As(err, &detailedError) && detailedError.Message == "Failure sending request" {
return machinecontroller.InvalidMachineConfiguration("failure sending request for machine %s", s.scope.Machine.Name)
return machinecontroller.InvalidMachineConfiguration("failure sending request for machine %s: %v", s.scope.Machine.Name, err)
}
return fmt.Errorf("failed to create or get machine: %w", err)
}
Expand Down

0 comments on commit 86841cb

Please sign in to comment.