Skip to content

Commit

Permalink
minor updates to machine error message text
Browse files Browse the repository at this point in the history
  • Loading branch information
andie787 committed Oct 12, 2023
1 parent 76f709c commit 9538519
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/machine/leasable_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func (lm *leasableMachine) WaitForState(ctx context.Context, desiredState string
case errors.Is(waitCtx.Err(), context.Canceled):
return err
case errors.Is(waitCtx.Err(), context.DeadlineExceeded):
return fmt.Errorf("timeout reached waiting for machine to %s %w", desiredState, err)
return fmt.Errorf("timeout reached waiting for machine to reach %s state: %w", desiredState, err)
case notFoundResponse && desiredState != api.MachineStateDestroyed:
return err
case !notFoundResponse && err != nil:
Expand Down Expand Up @@ -290,7 +290,7 @@ func (lm *leasableMachine) WaitForHealthchecksToPass(ctx context.Context, timeou
case errors.Is(waitCtx.Err(), context.Canceled):
return err
case errors.Is(waitCtx.Err(), context.DeadlineExceeded):
return fmt.Errorf("timeout reached waiting for healthchecks to pass for machine %s %w", lm.Machine().ID, err)
return fmt.Errorf("timeout reached waiting for health checks to pass for machine %s: %w", lm.Machine().ID, err)
case err != nil:
return fmt.Errorf("error getting machine %s from api: %w", lm.Machine().ID, err)
case !updateMachine.AllHealthChecks().AllPassing():
Expand Down Expand Up @@ -327,7 +327,7 @@ func (lm *leasableMachine) WaitForEventTypeAfterType(ctx context.Context, eventT
case errors.Is(waitCtx.Err(), context.Canceled):
return nil, err
case errors.Is(waitCtx.Err(), context.DeadlineExceeded):
return nil, fmt.Errorf("timeout reached waiting for healthchecks to pass for machine %s %w", lm.Machine().ID, err)
return nil, fmt.Errorf("timeout reached waiting for health checks to pass for machine %s: %w", lm.Machine().ID, err)
case err != nil:
return nil, fmt.Errorf("error getting machine %s from api: %w", lm.Machine().ID, err)
}
Expand Down

0 comments on commit 9538519

Please sign in to comment.