fix: add exit after database connection test failed

This commit is contained in:
Jonas Kaninda
2024-09-11 08:03:16 +02:00
parent 645243ff77
commit 0881f075ef

View File

@@ -118,8 +118,7 @@ func testDatabaseConnection(db *dbConfig) {
cmd.Stderr = &out
err := cmd.Run()
if err != nil {
utils.Error("Error testing database connection: %v\nOutput: %s", err, out.String())
os.Exit(1)
utils.Fatal("Error testing database connection: %v\nOutput: %s", err, out.String())
}
utils.Info("Successfully connected to %s database", db.dbName)