diff --git a/background_check.go b/background_check.go index 2458ad6ed..b45df9e60 100644 --- a/background_check.go +++ b/background_check.go @@ -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 }