From cf0130b9ed1b2c7a5ab14824346ede868655feda Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Wed, 20 Nov 2019 16:16:33 -0800 Subject: [PATCH] pick up dropped error --- common/step_download.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/step_download.go b/common/step_download.go index 332a8dd69..a1fa6db89 100644 --- a/common/step_download.go +++ b/common/step_download.go @@ -151,6 +151,9 @@ func (s *StepDownload) download(ctx context.Context, ui packer.Ui, source string targetPath += "." + s.Extension } targetPath, err = packer.CachePath(targetPath) + if err != nil { + return "", fmt.Errorf("CachePath: %s", err) + } } lockFile := targetPath + ".lock"