Skip to content

Commit befcbde

Browse files
irbyCopilot
andauthored
Update cmd/main.go
Co-authored-by: Copilot <[email protected]>
1 parent 84e9be9 commit befcbde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func main() {
179179
}
180180

181181
if defaultHealthCheckInterval < time.Duration(30) * time.Second {
182-
setupLog.Error(err, fmt.Sprintf("interval %s is invalid, must be greater than or equal to '30s'", healthCheckInterval))
182+
setupLog.Error(errors.New(fmt.Sprintf("interval %s is invalid, must be greater than or equal to '30s'", healthCheckInterval)), "invalid health check interval")
183183
os.Exit(1)
184184
}
185185

0 commit comments

Comments
 (0)