Append underlying error to output when FixerAmazonPrivateIP cannot parse the value of ssh_private_ip
This commit is contained in:
parent
04de86d211
commit
b0589c9643
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue