@@ -302,7 +302,7 @@ func (c *Client) Connect() (*DBConnection, error) {
302302 }
303303 if err != nil {
304304 errString := strings .Replace (err .Error (), c .config .Password , "XXXX" , 2 )
305- return nil , fmt .Errorf ("Error connecting to PostgreSQL server %s (scheme: %s): %s" , c .config .Host , c .config .Scheme , errString )
305+ return nil , fmt .Errorf ("error connecting to PostgreSQL server %s (scheme: %s): %s" , c .config .Host , c .config .Scheme , errString )
306306 }
307307
308308 // We don't want to retain connection
@@ -365,17 +365,17 @@ func openImpersonatedGCPDBConnection(ctx context.Context, dsn string, targetServ
365365 Scopes : []string {"https://www.googleapis.com/auth/sqlservice.admin" },
366366 })
367367 if err != nil {
368- return nil , fmt .Errorf ("Error creating token source with service account impersonation of %s: %w" , targetServiceAccountEmail , err )
368+ return nil , fmt .Errorf ("error creating token source with service account impersonation of %s: %w" , targetServiceAccountEmail , err )
369369 }
370370 client , err := gcp .NewHTTPClient (gcp .DefaultTransport (), ts )
371371 if err != nil {
372- return nil , fmt .Errorf ("Error creating HTTP client with service account impersonation of %s: %w" , targetServiceAccountEmail , err )
372+ return nil , fmt .Errorf ("error creating HTTP client with service account impersonation of %s: %w" , targetServiceAccountEmail , err )
373373 }
374374 certSource := cloudsql .NewCertSourceWithIAM (client , ts )
375375 opener := gcppostgres.URLOpener {CertSource : certSource }
376376 dbURL , err := url .Parse (dsn )
377377 if err != nil {
378- return nil , fmt .Errorf ("Error parsing connection string: %w" , err )
378+ return nil , fmt .Errorf ("error parsing connection string: %w" , err )
379379 }
380380 return opener .OpenPostgresURL (ctx , dbURL )
381381}
0 commit comments