mchstest/pkg/util/errors.go

15 lines
142 B
Go
Raw Normal View History

2023-01-19 11:13:08 +02:00
package util
import (
"fmt"
"os"
)
func Check(e error, msg string) {
if e != nil {
fmt.Println(msg)
fmt.Println(e)
os.Exit(1)
}
}