jira-bot/pkg/utils/exit.go

14 lines
132 B
Go
Raw Permalink Normal View History

2021-06-06 03:46:11 +03:00
package utils
import (
"log"
"os"
"time"
)
func Exit(err error) {
log.Println(err)
time.Sleep(time.Second * 2)
os.Exit(1)
}