We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 714ab17 commit e6b0772Copy full SHA for e6b0772
driver.go
@@ -28,10 +28,12 @@ type hetznerDriver struct {
28
}
29
30
func (hd *hetznerDriver) checkBackoff() error {
31
- if time.Now().Before(hd.nextTry) {
32
- return fmt.Errorf("last failure too recent; waiting a bit before retrying")
33
- }
34
- return nil
+ now := time.Now()
+ if now.Before(hd.nextTry) {
+ waitDuration := time.Until(hd.nextTry)
+ return fmt.Errorf("last failure too recent; failed %d times in a row before this; retry after %s", hd.failuresInARow, waitDuration)
35
+ }
36
+ return nil
37
38
39
func (hd *hetznerDriver) handleBackoff(err error) {
0 commit comments