oci builder: Show key_file errors (#10774)

pull/10791/head
Adrien Delorme 5 years ago committed by GitHub
parent 3227d3da43
commit d5ccf73e91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -253,7 +253,7 @@ func (c *Config) Prepare(raws ...interface{}) error {
if _, err := configProvider.PrivateRSAKey(); err != nil {
errs = packersdk.MultiErrorAppend(
errs, errors.New("'key_file' must be specified"))
errs, fmt.Errorf("'key_file' must be correctly specified. %w", err))
}
c.configProvider = configProvider

Loading…
Cancel
Save