Skip to content

Commit

Permalink
log.Fatal on errors instead of just print
Browse files Browse the repository at this point in the history
  • Loading branch information
chmouel committed Nov 14, 2023
1 parent 1b32ba0 commit be26c3f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package main

import (
"fmt"
"log"
"os"

gosmee "github.com/chmouel/gosmee/gosmee"
"github.com/mgutz/ansi"
)

func main() {
if err := gosmee.Run(os.Args); err != nil {
fmt.Fprintf(os.Stdout, "%s gosmee %s\n", ansi.Color("ERROR", "red+b"), err.Error())
log.Fatal(err)
}
}

0 comments on commit be26c3f

Please sign in to comment.