Skip to content

Commit

Permalink
Merge pull request #82 from mittwald/patherror_check2
Browse files Browse the repository at this point in the history
missing return nil added
  • Loading branch information
leontappe authored Jul 30, 2024
2 parents 07813bf + 554c998 commit bb72ca4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/probe/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func (h *Handler) Wait(interrupt chan os.Signal) error {
var pathErr *os.PathError
if errors.As(err, &pathErr) {
log.WithFields(log.Fields{"kind": "probe", "name": i, "err": err}).Fatal("path does not exist")
return nil
}
if err != nil {
log.WithFields(log.Fields{"kind": "probe", "name": i, "err": err}).Warn("not ready yet")
Expand Down

0 comments on commit bb72ca4

Please sign in to comment.