diff --git a/main.go b/main.go index b0e4e19..f82e2dd 100644 --- a/main.go +++ b/main.go @@ -206,7 +206,7 @@ func getCACert() (string, error) { path := strings.Join([]string{strings.Trim(cfg.PKIMountPoint, "/"), "cert", "ca"}, "/") cs, err := client.Logical().Read(path) if err != nil { - return errors.New("Unable to read certificate: " + err.Error()) + return "", errors.New("Unable to read certificate: " + err.Error()) } return cs.Data["certificate"].(string), nil