From d5ccf73e91a444d868a243e86bce52dfee9b4a43 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Fri, 19 Mar 2021 11:59:10 +0100 Subject: [PATCH] oci builder: Show key_file errors (#10774) --- builder/oracle/oci/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/oracle/oci/config.go b/builder/oracle/oci/config.go index a1a4c980f..11cb1f69f 100644 --- a/builder/oracle/oci/config.go +++ b/builder/oracle/oci/config.go @@ -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