Use log.Fatal isntead of panic

pull/11/head
maru 7 months ago
parent dd013a1626
commit 5656fb96d1
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D

@ -50,7 +50,7 @@ func Init(username, password, protocol, address, database string) error {
tx, err := handle.Begin() tx, err := handle.Begin()
if err != nil { if err != nil {
panic(err) log.Fatal(err)
} }
// accounts // accounts
@ -83,7 +83,7 @@ func Init(username, password, protocol, address, database string) error {
err = tx.Commit() err = tx.Commit()
if err != nil { if err != nil {
panic(err) log.Fatal(err)
} }
// TODO temp code // TODO temp code
@ -99,7 +99,7 @@ func Init(username, password, protocol, address, database string) error {
entries, err := os.ReadDir("userdata") entries, err := os.ReadDir("userdata")
if err != nil { if err != nil {
log.Fatalln(err) log.Fatal(err)
return nil return nil
} }

Loading…
Cancel
Save