summaryrefslogtreecommitdiff
path: root/cmd/util/exit.go
blob: 96fcbf3c99a08a736096713b31d1dd01624b94e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
package util

import (
	"os"
)

// ExitWithError prints error and exits with error code`.
func ExitWithError(err error) {
	Panicf("<red+hb>Error:</reset> <red>%s</reset>\n", err)
	os.Exit(1)
}