Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: improve error message when DB connection fails (#2898)

Praneet Loke72dbe6bbf569
diff --git a/plugin/db/pg/pg.go b/plugin/db/pg/pg.go
index f531995670..3ebfc8b869 100644
--- a/plugin/db/pg/pg.go
+++ b/plugin/db/pg/pg.go
@@ -162,7 +162,7 @@ func guessDSN(username, password, hostname, port, database, sslCA, sslCert, sslK
}
return guessDatabase, guessDSN, nil
}
- return "", "", errors.Errorf("cannot connecting instance, make sure the connection info is correct")
+ return "", "", errors.Errorf("cannot connect to the instance, make sure the connection info is correct")
}
// Close closes the driver.