oci builder: Show key_file errors (#10774)

This commit is contained in:
Adrien Delorme 2021-03-19 11:59:10 +01:00 committed by GitHub
parent 3227d3da43
commit d5ccf73e91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ func (c *Config) Prepare(raws ...interface{}) error {
if _, err := configProvider.PrivateRSAKey(); err != nil { if _, err := configProvider.PrivateRSAKey(); err != nil {
errs = packersdk.MultiErrorAppend( 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 c.configProvider = configProvider