package main import ( "os" "github.com/pterm/pterm" ) func Error(err error) { if err != nil { pterm.Error.Println(err) os.Exit(1) } return }