providers/google: Fix error appending

This commit is contained in:
Justin Campbell 2015-07-27 17:07:38 -04:00
parent 8faa111156
commit 4764a556c0
1 changed files with 6 additions and 3 deletions

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