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