Fix error message for when home directory not found

This commit is contained in:
Jason Felice 2017-02-03 11:41:52 -05:00 committed by Martin Atkins
parent 8a7a6c6059
commit ab33435863
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) {
// Use the vault CLI's token, if present.
homePath, err := homedir.Dir()
if err != nil {
return nil, fmt.Errorf("No vault token found: %s", err)
return nil, fmt.Errorf("Can't find home directory when looking for ~/.vault-token: %s", err)
}
tokenBytes, err := ioutil.ReadFile(homePath + "/.vault-token")
if err != nil {