Skip to content

Commit

Permalink
fix(main): handle returned error
Browse files Browse the repository at this point in the history
  • Loading branch information
konart committed Jan 11, 2024
1 parent 552c964 commit 6012400
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import (
)

func main() {
mysql.SetLogger(log.New(io.Discard, "", 0))
if err := mysql.SetLogger(log.New(io.Discard, "", 0)); err != nil {
panic(err)
}

if err := app.App.SetRoot(components.MainPages, true).Run(); err != nil {
panic(err)
Expand Down

0 comments on commit 6012400

Please sign in to comment.