campaigner/cmd/utils.go

13 lines
164 B
Go
Raw Normal View History

package cmd
import (
"os"
"github.com/spf13/cobra"
)
func ErrorAndExit(cmd *cobra.Command, err error) {
2020-03-01 13:02:52 +01:00
cmd.PrintErrln("ERROR: " + err.Error())
os.Exit(1)
}