gocw2/utils.go

18 lines
227 B
Go
Raw Permalink Normal View History

2019-05-03 11:19:20 +02:00
package main
import (
"log"
)
func failOnError(err error, msg string) {
if err != nil {
log.Fatalf("%s: %s", msg, err)
}
}
func logOnError(err error, msg string) {
if err != nil {
log.Printf("%s: %s", msg, err)
}
}