We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16fa177 commit ef68f13Copy full SHA for ef68f13
common/error.go
@@ -3,5 +3,5 @@ package common
3
import "strings"
4
5
func IsNotExist(err error) bool {
6
- 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")
7
}
0 commit comments