We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cdcd89 commit 3c84ec0Copy full SHA for 3c84ec0
postgresql/provider.go
@@ -215,13 +215,13 @@ func createGoogleCredsFileIfNeeded() error {
215
216
tmpFile, err := os.CreateTemp("", "")
217
if err != nil {
218
- return err
+ return fmt.Errorf("could not create temporary file: %w", err)
219
}
220
defer tmpFile.Close()
221
222
_, err = tmpFile.WriteString(rawGoogleCredentials)
223
224
+ return fmt.Errorf("could not write in temporary file: %w", err)
225
226
227
return os.Setenv("GOOGLE_APPLICATION_CREDENTIALS", tmpFile.Name())
0 commit comments