Skip to content

Commit 3da4a27

Browse files
authored
Merge pull request #83 from jkaninda/docs
fix: add exit after database connection test failed
2 parents 066e73f + 0881f07 commit 3da4a27

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/helper.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ func testDatabaseConnection(db *dbConfig) {
118118
cmd.Stderr = &out
119119
err := cmd.Run()
120120
if err != nil {
121-
utils.Error("Error testing database connection: %v\nOutput: %s", err, out.String())
122-
os.Exit(1)
121+
utils.Fatal("Error testing database connection: %v\nOutput: %s", err, out.String())
123122

124123
}
125124
utils.Info("Successfully connected to %s database", db.dbName)

0 commit comments

Comments
 (0)