Skip to content

Commit 2d183bf

Browse files
author
Dov Alperin
committed
use errorf
1 parent 28df150 commit 2d183bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/start/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package main
22

33
import (
44
"context"
5-
"errors"
65
"fmt"
76
"log"
87
"os"
@@ -127,7 +126,7 @@ func scaleToZeroWorker(ctx context.Context, node *flypg.Node) error {
127126
if current > 1 {
128127
continue
129128
}
130-
return errors.New("scale to zero condition hit")
129+
return fmt.Errorf("scale to zero condition hit")
131130
}
132131
}
133132
}

0 commit comments

Comments
 (0)