Skip to content

Commit

Permalink
don't panic
Browse files Browse the repository at this point in the history
  • Loading branch information
lesomnus committed Nov 27, 2024
1 parent ff5e89d commit 39e773b
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 @@ -13,7 +13,9 @@ import (
func main() {
var l *slog.Logger
handleError := func(err error) {
l.Error(err.Error())
if l != nil {
l.Error(err.Error())
}

var e cli.ExitCoder
if errors.As(err, &e) {
Expand Down

0 comments on commit 39e773b

Please sign in to comment.