Skip to content

Commit

Permalink
Exit without error on DB config creation
Browse files Browse the repository at this point in the history
  • Loading branch information
yomcube committed Dec 23, 2024
1 parent e0738b3 commit ac71227
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ func main() {
fmt.Println("Setting up database...")
cfg, exit_code := sql.SetupConfig()
if exit_code == 1 {
panic("Postgres DB could not be set up!")
fmt.Println("DB config does not exist! Creating default config and exiting...")
return
}
cfg.SetupDatabase()

Expand Down

0 comments on commit ac71227

Please sign in to comment.