We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa8dc32 commit 0342cb9Copy full SHA for 0342cb9
pkg/probe/server.go
@@ -33,6 +33,11 @@ func (h *Handler) Wait(interrupt chan os.Signal) error {
33
34
for i := range h.waitProbes {
35
err := h.waitProbes[i].Exec()
36
+ var pathErr *os.PathError
37
+ if errors.As(err, &pathErr) {
38
+ log.WithFields(log.Fields{"kind": "probe", "name": i, "err": err}).Fatal("Path does not exist!")
39
+ return nil
40
+ }
41
if err != nil {
42
log.WithFields(log.Fields{"kind": "probe", "name": i, "err": err}).Warn("not ready yet")
43
ready = false
0 commit comments