1
0
mirror of https://github.com/google/gops.git synced 2024-11-27 08:31:17 +02:00

Return err from Find if err in not nil

This commit is contained in:
Sergei Semenchuk 2022-04-11 14:04:46 +03:00
parent 4e16ac7815
commit f96b94b668

View File

@ -93,6 +93,9 @@ func Find(pid int) (p P, ok bool, err error) {
return P{}, false, err
}
path, version, agent, ok, err := isGo(pr)
if err != nil {
return P{}, ok, err
}
if !ok {
return P{}, false, nil
}