surface notimplemented errs too
This commit is contained in:
parent
aa8b9164a3
commit
ab03800a1d
|
@ -11,9 +11,12 @@ import (
|
||||||
func checkProcess(currentPID int) (bool, error) {
|
func checkProcess(currentPID int) (bool, error) {
|
||||||
myProc, err := process.NewProcess(int32(currentPID))
|
myProc, err := process.NewProcess(int32(currentPID))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, fmt.Errorf("Error figuring out Packer process info")
|
return false, fmt.Errorf("Process check error: %s", err)
|
||||||
|
}
|
||||||
|
bg, err := myProc.Background()
|
||||||
|
if err != nil {
|
||||||
|
return bg, fmt.Errorf("Process background check error: %s", err)
|
||||||
}
|
}
|
||||||
bg, _ := myProc.Background()
|
|
||||||
|
|
||||||
return bg, nil
|
return bg, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue