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 1ab7381 commit cf436e6Copy full SHA for cf436e6
cmd/reset.go
@@ -77,7 +77,10 @@ func runReset(cmd *cobra.Command, args []string) error {
77
WHERE datname = '%s' AND pid <> pg_backend_pid()
78
`, dbName)
79
80
- _, _ = db.Exec(terminateQuery) // Ignore errors, database might not exist
+ _, err = db.Exec(terminateQuery) // Ignore errors, database might not exist
81
+ if err != nil {
82
+ logger.Warn("Failed to terminate existing connections", "error", err)
83
+ }
84
85
// Drop the database if it exists
86
dropQuery := fmt.Sprintf("DROP DATABASE IF EXISTS %s", dbName)
0 commit comments