chirpnest/utils.go

12 lines
130 B
Go
Raw Normal View History

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