diff --git a/packer/plugin-getter/plugins.go b/packer/plugin-getter/plugins.go index 7594951df63..09446ab41de 100644 --- a/packer/plugin-getter/plugins.go +++ b/packer/plugin-getter/plugins.go @@ -818,7 +818,7 @@ func (pr *Requirement) InstallLatest(opts InstallOptions) (*Installation, error) break } if copyFrom == nil { - err := fmt.Errorf("could not find a %s file in zipfile", checksum.Filename) + err := fmt.Errorf("could not find a %q file in zipfile", expectedBinaryFilename) errs = multierror.Append(errs, err) return nil, errs }