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:
parent
4e16ac7815
commit
f96b94b668
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user