From b0589c964312e13f7a834a34f217c03a985aa1dd Mon Sep 17 00:00:00 2001 From: Don Kuntz Date: Mon, 25 Feb 2019 14:20:14 -0600 Subject: [PATCH] Append underlying error to output when FixerAmazonPrivateIP cannot parse the value of ssh_private_ip --- fix/fixer_amazon_private_ip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fix/fixer_amazon_private_ip.go b/fix/fixer_amazon_private_ip.go index bff7eff74..5fd11d60a 100644 --- a/fix/fixer_amazon_private_ip.go +++ b/fix/fixer_amazon_private_ip.go @@ -53,7 +53,7 @@ func (FixerAmazonPrivateIP) Fix(input map[string]interface{}) (map[string]interf var err error privateIP, err = strconv.ParseBool(privateIPi.(string)) if err != nil { - return nil, fmt.Errorf("ssh_private_ip is not a boolean") + return nil, fmt.Errorf("ssh_private_ip is not a boolean, %s", err) } }