From ab03800a1d5f479974d0bf5d57bfb1dfd5e082db Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Thu, 19 Sep 2019 08:57:50 -0700 Subject: [PATCH] surface notimplemented errs too --- background_check.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 }