surface notimplemented errs too

This commit is contained in:
Megan Marsh 2019-09-19 08:57:50 -07:00
parent aa8b9164a3
commit ab03800a1d
1 changed files with 5 additions and 2 deletions

View File

@ -11,9 +11,12 @@ import (
func checkProcess(currentPID int) (bool, error) {
myProc, err := process.NewProcess(int32(currentPID))
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
}