mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-03 01:01:06 +00:00
providers/google: Fix error appending
This commit is contained in:
parent
903300ddcb
commit
86cc12268b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user