2018-06-10 08:44:53 +02:00
|
|
|
package base
|
|
|
|
|
|
|
|
import (
|
2018-06-24 17:49:48 +02:00
|
|
|
"github.com/jouir/pgterminate/log"
|
2018-06-10 08:44:53 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
// Panic prints a non-nil error and terminates the program
|
|
|
|
func Panic(err error) {
|
|
|
|
if err != nil {
|
2018-06-24 17:49:48 +02:00
|
|
|
log.Fatalf("%s\n", err)
|
2018-06-10 08:44:53 +02:00
|
|
|
}
|
|
|
|
}
|