providers/google: Fix error appending

This commit is contained in:
Justin Campbell 2015-07-27 17:07:38 -04:00
parent 903300ddcb
commit 86cc12268b

View File

@ -87,9 +87,12 @@ ${file("filename.json")} instead.`)
return
}
if _, err := os.Stat(value); os.IsNotExist(err) {
errors = append(errors, err)
fmt.Errorf("account_file path does not exist: %s", value)
if _, err := os.Stat(value); err != nil {
errors = append(errors,
fmt.Errorf(
"account_file path could not be read from '%s': %s",
value,
err))
}
return