patchman/client/utils/handleError.go

16 lines
229 B
Go
Raw Permalink Normal View History

2023-10-26 21:32:21 +02:00
package utils
import "log"
func HandleError(err error, msg string) {
if err != nil {
log.Printf("%s: %v", msg, err)
}
}
func HandleErrorFatal(err error, msg string) {
if err != nil {
log.Fatalf("%s: %v", msg, err)
}
}