added Error function

This commit is contained in:
John O'Keefe 2025-04-04 14:51:03 -04:00
parent 39d45ccf28
commit d63162831e

14
error.go Normal file
View File

@ -0,0 +1,14 @@
package main
import (
"os"
"github.com/pterm/pterm"
)
func Error(err error) {
if err != nil {
pterm.Error.Println(err)
os.Exit(1)
}
}