pgterminate/base/utils.go
2018-06-24 17:59:54 +02:00

12 lines
193 B
Go

package base
import (
"github.com/jouir/pgterminate/log"
)
// Panic prints a non-nil error and terminates the program
func Panic(err error) {
if err != nil {
log.Fatalf("%s\n", err)
}
}