Files
Scientific-Notation-Converter/error.go
2025-04-04 14:51:03 -04:00

15 lines
145 B
Go

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