Skip to content

Commit

Permalink
fix logging suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
def committed Mar 23, 2022
1 parent 16fa177 commit ef68f13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package common
import "strings"

func IsNotExist(err error) bool {
return strings.Contains(err.Error(), "no such file or directory") && strings.Contains(err.Error(), "no such process")
return strings.Contains(err.Error(), "no such file or directory") || strings.Contains(err.Error(), "no such process")
}

0 comments on commit ef68f13

Please sign in to comment.